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
- NegatedConstant.cs
- TiffBitmapEncoder.cs
- ThemeableAttribute.cs
- Fx.cs
- ELinqQueryState.cs
- CodeNamespaceImport.cs
- HttpCookiesSection.cs
- EdgeModeValidation.cs
- PopOutPanel.cs
- PrimitiveType.cs
- Control.cs
- XDRSchema.cs
- DataRelationPropertyDescriptor.cs
- HttpRequestTraceRecord.cs
- PropertyInfoSet.cs
- DomainUpDown.cs
- AccessKeyManager.cs
- EventMappingSettings.cs
- SqlConnectionStringBuilder.cs
- CancellationTokenSource.cs
- XmlDocumentFragment.cs
- SmiEventSink_Default.cs
- DeferredReference.cs
- NewExpression.cs
- DataGridViewCellMouseEventArgs.cs
- ExpandCollapsePattern.cs
- CfgRule.cs
- ResourceAssociationSetEnd.cs
- SubstitutionDesigner.cs
- TraceSwitch.cs
- ThicknessConverter.cs
- DataServiceStreamProviderWrapper.cs
- XamlNamespaceHelper.cs
- DrawingCollection.cs
- IPGlobalProperties.cs
- StringFormat.cs
- HtmlEncodedRawTextWriter.cs
- PathFigure.cs
- WebServiceParameterData.cs
- XmlSchemaParticle.cs
- ArrayConverter.cs
- CodeSubDirectoriesCollection.cs
- Queue.cs
- ListDictionaryInternal.cs
- AspNetSynchronizationContext.cs
- RootNamespaceAttribute.cs
- RegularExpressionValidator.cs
- Win32Exception.cs
- RefreshPropertiesAttribute.cs
- KeyFrames.cs
- IDictionary.cs
- CredentialCache.cs
- InvalidPropValue.cs
- PerformanceCounterLib.cs
- DbMetaDataFactory.cs
- SafeRegistryHandle.cs
- QueryCursorEventArgs.cs
- BindingListCollectionView.cs
- RtfNavigator.cs
- SqlCacheDependency.cs
- Image.cs
- PreProcessInputEventArgs.cs
- StrongNameSignatureInformation.cs
- WizardStepCollectionEditor.cs
- ClientTarget.cs
- BatchParser.cs
- SerializableTypeCodeDomSerializer.cs
- StreamGeometry.cs
- GridEntry.cs
- JsonServiceDocumentSerializer.cs
- FormView.cs
- AuthenticationModuleElementCollection.cs
- PauseStoryboard.cs
- XhtmlBasicTextBoxAdapter.cs
- ContentTextAutomationPeer.cs
- CodeNamespaceImportCollection.cs
- GetKeyedHashRequest.cs
- DataListItemCollection.cs
- DispatcherObject.cs
- RenderDataDrawingContext.cs
- NumberSubstitution.cs
- DataObjectSettingDataEventArgs.cs
- UnlockInstanceCommand.cs
- Single.cs
- ManipulationDevice.cs
- PositiveTimeSpanValidator.cs
- Expression.cs
- XmlQueryContext.cs
- Freezable.cs
- DBConnectionString.cs
- ContextMenuAutomationPeer.cs
- HostingEnvironmentException.cs
- XMLUtil.cs
- StringComparer.cs
- UserControlDesigner.cs
- ParallelDesigner.cs
- OuterGlowBitmapEffect.cs
- ResourceContainer.cs
- XsltArgumentList.cs
- _HTTPDateParse.cs