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 / 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
- BitmapVisualManager.cs
- SettingsPropertyValueCollection.cs
- SchemaNamespaceManager.cs
- IDispatchConstantAttribute.cs
- StylusPointPropertyId.cs
- StaticExtension.cs
- QueryComponents.cs
- RsaEndpointIdentity.cs
- DataTemplate.cs
- WindowsListViewItemStartMenu.cs
- Drawing.cs
- InvalidMessageContractException.cs
- DiscoveryClientElement.cs
- BufferBuilder.cs
- Cursor.cs
- BindingExpression.cs
- AssemblyHash.cs
- IPHostEntry.cs
- DataGridTableStyleMappingNameEditor.cs
- ReflectionHelper.cs
- HiddenField.cs
- ViewCellRelation.cs
- SafeThreadHandle.cs
- ToolBarButtonClickEvent.cs
- RuntimeConfigurationRecord.cs
- VectorKeyFrameCollection.cs
- Rotation3DAnimationBase.cs
- ControlBuilderAttribute.cs
- CorrelationValidator.cs
- ElapsedEventArgs.cs
- Brushes.cs
- WebResourceUtil.cs
- DefaultTextStore.cs
- XPathNavigatorReader.cs
- PenThreadPool.cs
- Helper.cs
- AutomationPeer.cs
- SQLConvert.cs
- ProfilePropertyMetadata.cs
- SchemaHelper.cs
- FixedTextView.cs
- odbcmetadatacollectionnames.cs
- LabelExpression.cs
- StrokeNodeOperations.cs
- CodeAttachEventStatement.cs
- PingOptions.cs
- Point3DAnimationBase.cs
- StyleModeStack.cs
- OdbcPermission.cs
- WebServiceHandler.cs
- RemoteX509Token.cs
- SamlAssertion.cs
- CommonObjectSecurity.cs
- SerialPort.cs
- KeyTimeConverter.cs
- DataGridItem.cs
- X509CertificateTrustedIssuerElementCollection.cs
- EditorPartCollection.cs
- CacheMemory.cs
- ConnectionInterfaceCollection.cs
- PolicyAssertionCollection.cs
- AppDomain.cs
- DataGridViewCellStateChangedEventArgs.cs
- NetCodeGroup.cs
- XmlSchemaNotation.cs
- SmiConnection.cs
- PrimitiveList.cs
- Material.cs
- LongMinMaxAggregationOperator.cs
- Suspend.cs
- QueryMath.cs
- MetadataUtil.cs
- MeasurementDCInfo.cs
- TypeUnloadedException.cs
- TraceHandlerErrorFormatter.cs
- SurrogateSelector.cs
- TcpClientChannel.cs
- HwndSourceParameters.cs
- SecurityProtocol.cs
- SiteMapProvider.cs
- Translator.cs
- DataControlFieldHeaderCell.cs
- LayoutTableCell.cs
- DeviceOverridableAttribute.cs
- StandardMenuStripVerb.cs
- SecurityContextSecurityTokenParameters.cs
- BoolLiteral.cs
- CompModHelpers.cs
- DataMisalignedException.cs
- TextFindEngine.cs
- Exceptions.cs
- ValidationError.cs
- ImageListUtils.cs
- PropertyExpression.cs
- DataContractJsonSerializer.cs
- XmlAttributeAttribute.cs
- XmlUnspecifiedAttribute.cs
- ModuleConfigurationInfo.cs
- GlobalAclOperationRequirement.cs
- OptimalBreakSession.cs