Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1 / TextDecorationLocationValidation.cs
//---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // //// Copyright (C) Microsoft Corporation. All rights reserved. // // // This file was generated, please do not edit it directly. // // Please see http://wiki/default.aspx/Microsoft.Projects.Avalon/MilCodeGen.html for more information. // //--------------------------------------------------------------------------- using System; using System.ComponentModel; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; #if PRESENTATION_CORE using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; #else using SR=System.Windows.SR; using SRID=System.Windows.SRID; #endif namespace System.Windows { internal static partial class ValidateEnums { ////// Returns whether or not an enumeration instance a valid value. /// This method is designed to be used with ValidateValueCallback, and thus /// matches it's prototype. /// /// /// Enumeration value to validate. /// ///'true' if the enumeration contains a valid value, 'false' otherwise. public static bool IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GradientStop.cs
- GridViewCellAutomationPeer.cs
- ProcessThreadCollection.cs
- _BaseOverlappedAsyncResult.cs
- ModelProperty.cs
- GroupBox.cs
- BaseDataBoundControl.cs
- SessionState.cs
- UnSafeCharBuffer.cs
- SystemIPInterfaceProperties.cs
- HelpEvent.cs
- _StreamFramer.cs
- COSERVERINFO.cs
- KeyToListMap.cs
- EncryptedKeyIdentifierClause.cs
- FigureParagraph.cs
- XPathMessageFilterElementComparer.cs
- RegexNode.cs
- DetailsViewPageEventArgs.cs
- TraceEventCache.cs
- Transform3DGroup.cs
- WebPartPersonalization.cs
- SequentialUshortCollection.cs
- DbParameterCollectionHelper.cs
- CompiledIdentityConstraint.cs
- HostingEnvironmentException.cs
- FormsAuthenticationConfiguration.cs
- SmtpFailedRecipientException.cs
- CursorInteropHelper.cs
- WebPartsPersonalization.cs
- SmiContext.cs
- HostedElements.cs
- AjaxFrameworkAssemblyAttribute.cs
- PointValueSerializer.cs
- XomlDesignerLoader.cs
- HttpListenerRequest.cs
- MenuRendererClassic.cs
- WorkflowShape.cs
- MarkerProperties.cs
- ContractValidationHelper.cs
- TreeNodeCollectionEditorDialog.cs
- Int32CollectionValueSerializer.cs
- TaskFileService.cs
- ISFClipboardData.cs
- DataSourceCacheDurationConverter.cs
- SessionStateContainer.cs
- XmlSchemaAll.cs
- Formatter.cs
- SQLDecimalStorage.cs
- WorkflowCreationContext.cs
- TreeBuilder.cs
- SafeHandles.cs
- WebSysDisplayNameAttribute.cs
- DataControlPagerLinkButton.cs
- _TimerThread.cs
- DataGridItemEventArgs.cs
- HttpFileCollection.cs
- EntityConnectionStringBuilder.cs
- MultipartContentParser.cs
- FactoryId.cs
- Model3D.cs
- PolicyLevel.cs
- MatrixTransform3D.cs
- SqlInfoMessageEvent.cs
- XmlEncApr2001.cs
- TypeDependencyAttribute.cs
- MatrixIndependentAnimationStorage.cs
- LocalizableResourceBuilder.cs
- IntegerFacetDescriptionElement.cs
- RemotingHelper.cs
- StateRuntime.cs
- XmlBinaryReader.cs
- RuleDefinitions.cs
- TimelineClockCollection.cs
- GorillaCodec.cs
- ManageRequest.cs
- ResetableIterator.cs
- MsmqDecodeHelper.cs
- CommentEmitter.cs
- ProtocolsSection.cs
- BlurBitmapEffect.cs
- TriState.cs
- SmtpNegotiateAuthenticationModule.cs
- CallSiteBinder.cs
- BuildProviderAppliesToAttribute.cs
- NestPullup.cs
- SrgsText.cs
- DesignerLoader.cs
- MenuAdapter.cs
- ResourceCodeDomSerializer.cs
- AlignmentYValidation.cs
- Overlapped.cs
- CodeAttributeDeclaration.cs
- TreeNodeStyleCollection.cs
- SHA256Managed.cs
- MulticastDelegate.cs
- MarginCollapsingState.cs
- _UriTypeConverter.cs
- Utils.cs
- Tablet.cs