Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1305600 / 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
- _BufferOffsetSize.cs
- ComplexTypeEmitter.cs
- KeyboardEventArgs.cs
- AdjustableArrowCap.cs
- figurelengthconverter.cs
- XsdDateTime.cs
- BitmapSource.cs
- PasswordTextNavigator.cs
- ObjectStateEntry.cs
- AsyncContentLoadedEventArgs.cs
- hwndwrapper.cs
- DeflateStream.cs
- PathGradientBrush.cs
- DataGridPageChangedEventArgs.cs
- TextBlock.cs
- SafeTokenHandle.cs
- DbConnectionPoolIdentity.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- MatrixTransform3D.cs
- HttpRequestBase.cs
- SmiContextFactory.cs
- SemanticBasicElement.cs
- CommentAction.cs
- FloaterBaseParaClient.cs
- UIElementCollection.cs
- StreamMarshaler.cs
- CapacityStreamGeometryContext.cs
- Profiler.cs
- DSASignatureDeformatter.cs
- TreeNode.cs
- FixedSOMElement.cs
- TypeBuilder.cs
- BinHexEncoder.cs
- ScriptingAuthenticationServiceSection.cs
- StateMachineHelpers.cs
- OutputCache.cs
- StreamHelper.cs
- GridItem.cs
- tooltip.cs
- ComponentCommands.cs
- SqlBulkCopyColumnMapping.cs
- SessionStateItemCollection.cs
- TemplateXamlTreeBuilder.cs
- ScriptManager.cs
- dataprotectionpermission.cs
- XmlAttribute.cs
- WebServiceHost.cs
- HttpDebugHandler.cs
- Message.cs
- LazyTextWriterCreator.cs
- LocatorGroup.cs
- DetailsViewUpdatedEventArgs.cs
- DataRecord.cs
- FileUpload.cs
- InputBuffer.cs
- EventHandlersStore.cs
- StylusLogic.cs
- BitmapPalettes.cs
- TypefaceCollection.cs
- PassportAuthentication.cs
- DBSqlParser.cs
- RecipientInfo.cs
- ContextQuery.cs
- ConsumerConnectionPoint.cs
- LayoutDump.cs
- AuthenticationModuleElementCollection.cs
- HTMLTextWriter.cs
- HtmlContainerControl.cs
- HtmlObjectListAdapter.cs
- SByteConverter.cs
- WriteableOnDemandStream.cs
- ByteRangeDownloader.cs
- DynamicResourceExtension.cs
- ConfigurationCollectionAttribute.cs
- CaseExpr.cs
- _NegoStream.cs
- FormatException.cs
- ConsumerConnectionPoint.cs
- SignatureToken.cs
- BamlTreeUpdater.cs
- Italic.cs
- LineSegment.cs
- ControlIdConverter.cs
- InstanceNameConverter.cs
- DropShadowEffect.cs
- TargetControlTypeCache.cs
- SqlSupersetValidator.cs
- XmlILModule.cs
- SqlDataSourceQueryConverter.cs
- RelationshipSet.cs
- StickyNote.cs
- ClientBuildManagerTypeDescriptionProviderBridge.cs
- HwndKeyboardInputProvider.cs
- XmlHierarchyData.cs
- SHA512.cs
- WindowsNonControl.cs
- DelegatingConfigHost.cs
- InputQueue.cs
- OpCopier.cs
- Int64Storage.cs