Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- UTF8Encoding.cs
- InteropExecutor.cs
- BitmapMetadata.cs
- TextAutomationPeer.cs
- XmlAttribute.cs
- BinaryOperationBinder.cs
- FontTypeConverter.cs
- XmlILModule.cs
- XsdDateTime.cs
- MessageBox.cs
- XmlMtomWriter.cs
- X509RawDataKeyIdentifierClause.cs
- WsdlImporterElement.cs
- ToolStripContainer.cs
- TargetControlTypeCache.cs
- _RegBlobWebProxyDataBuilder.cs
- SQLGuid.cs
- SystemWebCachingSectionGroup.cs
- MappingException.cs
- FileLoadException.cs
- HttpRuntimeSection.cs
- RowToFieldTransformer.cs
- SaveFileDialog.cs
- Image.cs
- ContentPlaceHolder.cs
- TimeSpan.cs
- CodeValidator.cs
- PromptStyle.cs
- FlowDocumentFormatter.cs
- ConfigurationElementCollection.cs
- EventMap.cs
- RepeatButtonAutomationPeer.cs
- StyleXamlTreeBuilder.cs
- BevelBitmapEffect.cs
- Pair.cs
- CharAnimationUsingKeyFrames.cs
- XdrBuilder.cs
- CorePropertiesFilter.cs
- SqlSelectStatement.cs
- SHA1Managed.cs
- BasicExpandProvider.cs
- ThumbAutomationPeer.cs
- FixedTextSelectionProcessor.cs
- LocatorManager.cs
- PropertyChangingEventArgs.cs
- ArrangedElementCollection.cs
- ObjectDataSourceEventArgs.cs
- CompilerHelpers.cs
- WindowsTooltip.cs
- SortAction.cs
- _UriTypeConverter.cs
- StorageMappingItemLoader.cs
- DateTimeConverter2.cs
- Part.cs
- SafeThreadHandle.cs
- ConnectionPoint.cs
- FrameworkElement.cs
- DesignerView.cs
- Parser.cs
- ResourceAssociationSet.cs
- Baml6ConstructorInfo.cs
- MonthChangedEventArgs.cs
- TimeZoneNotFoundException.cs
- TypefaceMap.cs
- EntityDesignerBuildProvider.cs
- PageContentAsyncResult.cs
- MemoryResponseElement.cs
- SignatureToken.cs
- PointCollectionConverter.cs
- ApplicationManager.cs
- XmlILModule.cs
- DocumentPageViewAutomationPeer.cs
- BindValidator.cs
- CryptoStream.cs
- D3DImage.cs
- Gdiplus.cs
- CompilationRelaxations.cs
- RoutingService.cs
- HyperLinkStyle.cs
- Int32CAMarshaler.cs
- RoleGroup.cs
- DynamicDocumentPaginator.cs
- AttributeCollection.cs
- WindowsToolbar.cs
- SortDescriptionCollection.cs
- ContractMapping.cs
- MulticastDelegate.cs
- PersonalizationState.cs
- AttributedMetaModel.cs
- Stylesheet.cs
- PrimitiveXmlSerializers.cs
- TimestampInformation.cs
- SizeKeyFrameCollection.cs
- SimpleWorkerRequest.cs
- __Filters.cs
- SimpleTypeResolver.cs
- TypeUnloadedException.cs
- XmlSchemaSequence.cs
- FacetValueContainer.cs
- LeafCellTreeNode.cs