Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextHintingModeValidation.cs / 1305600 / TextHintingModeValidation.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.Media { 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 IsTextHintingModeValid(object valueObject) { TextHintingMode value = (TextHintingMode) valueObject; return (value == TextHintingMode.Auto) || (value == TextHintingMode.Fixed) || (value == TextHintingMode.Animated); } } } // 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.Media { 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 IsTextHintingModeValid(object valueObject) { TextHintingMode value = (TextHintingMode) valueObject; return (value == TextHintingMode.Auto) || (value == TextHintingMode.Fixed) || (value == TextHintingMode.Animated); } } } // 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
- namescope.cs
- AnonymousIdentificationModule.cs
- Soap12FormatExtensions.cs
- MaskedTextBoxDesigner.cs
- ProfilePropertySettingsCollection.cs
- DataBoundLiteralControl.cs
- StringArrayConverter.cs
- ALinqExpressionVisitor.cs
- BulletDecorator.cs
- SendMailErrorEventArgs.cs
- ContentPresenter.cs
- MessageDescriptionCollection.cs
- ResourceContainer.cs
- DummyDataSource.cs
- TreeNodeStyleCollection.cs
- VerificationAttribute.cs
- OutputCacheSettings.cs
- SignedPkcs7.cs
- Vector3DConverter.cs
- MailWebEventProvider.cs
- XPathCompileException.cs
- X509CertificateInitiatorServiceCredential.cs
- UnmanagedHandle.cs
- ApplicationGesture.cs
- SafeRightsManagementPubHandle.cs
- HttpModuleActionCollection.cs
- Privilege.cs
- TimeSpanValidatorAttribute.cs
- PropertyPath.cs
- ContextMenu.cs
- MatrixUtil.cs
- InvalidOperationException.cs
- NamedPermissionSet.cs
- CodeNamespaceImport.cs
- KeyValuePair.cs
- Lazy.cs
- __TransparentProxy.cs
- RegexWorker.cs
- MediaPlayer.cs
- XmlSchemaAttributeGroup.cs
- SpotLight.cs
- Span.cs
- SQLBoolean.cs
- ServiceContractListItemList.cs
- UiaCoreTypesApi.cs
- FieldDescriptor.cs
- TextServicesCompartment.cs
- TypeDependencyAttribute.cs
- ZoneIdentityPermission.cs
- iisPickupDirectory.cs
- Rotation3D.cs
- XmlBaseWriter.cs
- RunClient.cs
- TextViewSelectionProcessor.cs
- ExpressionBuilderContext.cs
- TextProviderWrapper.cs
- FormatConvertedBitmap.cs
- MultiAsyncResult.cs
- SqlFacetAttribute.cs
- ProcessThreadCollection.cs
- DependentList.cs
- Profiler.cs
- SizeIndependentAnimationStorage.cs
- DbProviderManifest.cs
- XmlSerializerAssemblyAttribute.cs
- XmlComplianceUtil.cs
- LocationSectionRecord.cs
- FormViewPagerRow.cs
- ValueType.cs
- WebServiceTypeData.cs
- Camera.cs
- IndependentlyAnimatedPropertyMetadata.cs
- ModelItemDictionary.cs
- BlockCollection.cs
- DataGridToolTip.cs
- InvalidateEvent.cs
- QilFunction.cs
- TextRangeProviderWrapper.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- BackgroundFormatInfo.cs
- AllMembershipCondition.cs
- EpmTargetTree.cs
- GridView.cs
- OutputCacheModule.cs
- QilScopedVisitor.cs
- NamespaceEmitter.cs
- Nullable.cs
- ProxyDataContractResolver.cs
- HierarchicalDataBoundControl.cs
- ConnectorSelectionGlyph.cs
- DisplayNameAttribute.cs
- XmlValidatingReaderImpl.cs
- DataErrorValidationRule.cs
- ToolboxItem.cs
- EntityConnectionStringBuilderItem.cs
- DropSource.cs
- BitmapEffectInput.cs
- HyperLinkStyle.cs
- PolicyLevel.cs
- TypeConverter.cs