Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / ClearTypeHintValidation.cs / 1305600 / ClearTypeHintValidation.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 IsClearTypeHintValid(object valueObject) { ClearTypeHint value = (ClearTypeHint) valueObject; return (value == ClearTypeHint.Auto) || (value == ClearTypeHint.Enabled); } } } // 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 IsClearTypeHintValid(object valueObject) { ClearTypeHint value = (ClearTypeHint) valueObject; return (value == ClearTypeHint.Auto) || (value == ClearTypeHint.Enabled); } } } // 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
- DocumentGrid.cs
- Transform.cs
- PolicyReader.cs
- MethodImplAttribute.cs
- DocumentXmlWriter.cs
- QuerySetOp.cs
- TypeLibConverter.cs
- SapiRecoInterop.cs
- HierarchicalDataTemplate.cs
- DataSetUtil.cs
- FileSecurity.cs
- ChannelBinding.cs
- smtpconnection.cs
- FormatSettings.cs
- IChannel.cs
- CollectionContainer.cs
- AudioException.cs
- WindowsGrip.cs
- DrawingAttributes.cs
- CodeDomSerializer.cs
- TextAdaptor.cs
- Vector3DIndependentAnimationStorage.cs
- ResourceDescriptionAttribute.cs
- SchemaDeclBase.cs
- DbMetaDataFactory.cs
- CannotUnloadAppDomainException.cs
- WeakReadOnlyCollection.cs
- TypeSystemProvider.cs
- processwaithandle.cs
- ProviderUtil.cs
- DSASignatureDeformatter.cs
- XmlValidatingReader.cs
- CaseStatement.cs
- ReaderContextStackData.cs
- WizardForm.cs
- StructuredType.cs
- PathNode.cs
- TypedTableBase.cs
- WsatServiceAddress.cs
- SystemThemeKey.cs
- TableCellCollection.cs
- X509CertificateCollection.cs
- CultureInfo.cs
- CodeTypeDelegate.cs
- FixedSOMElement.cs
- MenuItemStyle.cs
- designeractionlistschangedeventargs.cs
- PointKeyFrameCollection.cs
- _Win32.cs
- OutArgumentConverter.cs
- PageOutputQuality.cs
- ServiceHandle.cs
- StreamUpdate.cs
- StringFunctions.cs
- XmlWhitespace.cs
- WindowsListViewSubItem.cs
- HtmlTableRow.cs
- SQLBinaryStorage.cs
- ConfigurationSectionCollection.cs
- AutomationElementCollection.cs
- SetterBase.cs
- FieldValue.cs
- HashCodeCombiner.cs
- MetadataStore.cs
- BitmapData.cs
- HtmlTableRowCollection.cs
- DefaultProfileManager.cs
- VBIdentifierName.cs
- StreamInfo.cs
- Visual3DCollection.cs
- XmlMapping.cs
- MouseActionValueSerializer.cs
- DataSourceViewSchemaConverter.cs
- InstanceDescriptor.cs
- ConnectionPoolManager.cs
- StringValidator.cs
- ZipFileInfo.cs
- CodeDelegateCreateExpression.cs
- Site.cs
- ScrollItemPatternIdentifiers.cs
- XmlBinaryReader.cs
- Delegate.cs
- DispatcherTimer.cs
- WindowsListView.cs
- TextModifierScope.cs
- StreamGeometry.cs
- EmptyReadOnlyDictionaryInternal.cs
- SmiContext.cs
- MenuScrollingVisibilityConverter.cs
- EventLogPermission.cs
- RawMouseInputReport.cs
- SessionStateItemCollection.cs
- SparseMemoryStream.cs
- ScrollChangedEventArgs.cs
- IHttpResponseInternal.cs
- ISessionStateStore.cs
- StringAttributeCollection.cs
- Rect.cs
- Padding.cs
- TypeSystem.cs