Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- PoisonMessageException.cs
- CodeCatchClauseCollection.cs
- RuntimeDelegateArgument.cs
- SoapAttributeAttribute.cs
- AssemblyNameUtility.cs
- CharacterHit.cs
- ExtendedProtectionPolicy.cs
- InfoCardMetadataExchangeClient.cs
- EntityType.cs
- QilIterator.cs
- XmlElementList.cs
- BorderSidesEditor.cs
- Bind.cs
- NegatedCellConstant.cs
- LinkDescriptor.cs
- IconBitmapDecoder.cs
- UnhandledExceptionEventArgs.cs
- Vector3DKeyFrameCollection.cs
- ComboBox.cs
- BamlMapTable.cs
- DataGridViewLinkCell.cs
- StrongNameMembershipCondition.cs
- _Connection.cs
- QueryableDataSourceHelper.cs
- NativeCompoundFileAPIs.cs
- BidOverLoads.cs
- HttpDictionary.cs
- RSAPKCS1SignatureDeformatter.cs
- ToolStripDropDown.cs
- ButtonBase.cs
- MouseButton.cs
- UrlUtility.cs
- SoapParser.cs
- TabItemWrapperAutomationPeer.cs
- WebPartMenu.cs
- DiagnosticTraceSchemas.cs
- ComponentCodeDomSerializer.cs
- CfgParser.cs
- _FtpDataStream.cs
- XmlJsonReader.cs
- ManifestResourceInfo.cs
- DataGridViewButtonColumn.cs
- Socket.cs
- ImportContext.cs
- GlobalizationAssembly.cs
- ContextStaticAttribute.cs
- AbstractDataSvcMapFileLoader.cs
- StateDesigner.cs
- HybridDictionary.cs
- TableCell.cs
- DispatcherHookEventArgs.cs
- PerfCounterSection.cs
- PointLightBase.cs
- Journaling.cs
- FixedPosition.cs
- DoubleCollection.cs
- DoubleCollection.cs
- SpinLock.cs
- Message.cs
- CardSpaceException.cs
- AnnotationResource.cs
- GeometryGroup.cs
- DBCommand.cs
- ButtonFieldBase.cs
- ExpressionBuilderCollection.cs
- HandleCollector.cs
- OuterGlowBitmapEffect.cs
- ProtocolsSection.cs
- Module.cs
- X509Utils.cs
- ManualResetEvent.cs
- BrowserCapabilitiesFactory.cs
- MetadataItem.cs
- TypedServiceOperationListItem.cs
- ValidatorUtils.cs
- WebHttpBindingCollectionElement.cs
- SortableBindingList.cs
- RectKeyFrameCollection.cs
- PersonalizationProviderHelper.cs
- XmlToDatasetMap.cs
- AttributeCollection.cs
- OracleNumber.cs
- InProcStateClientManager.cs
- HandlerBase.cs
- WebEventCodes.cs
- NameValueConfigurationCollection.cs
- PenThreadWorker.cs
- AttachedPropertyBrowsableAttribute.cs
- DbConnectionStringCommon.cs
- Brush.cs
- PropertyStore.cs
- GlobalProxySelection.cs
- SkinIDTypeConverter.cs
- SplayTreeNode.cs
- ResourceReferenceExpressionConverter.cs
- ClientSession.cs
- FullTextBreakpoint.cs
- ToolStripGripRenderEventArgs.cs
- NegotiateStream.cs
- TableLayoutStyle.cs