Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextRenderingModeValidation.cs / 1305600 / TextRenderingModeValidation.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 IsTextRenderingModeValid(object valueObject) { TextRenderingMode value = (TextRenderingMode) valueObject; return (value == TextRenderingMode.Auto) || (value == TextRenderingMode.Aliased) || (value == TextRenderingMode.Grayscale) || (value == TextRenderingMode.ClearType); } } } // 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 IsTextRenderingModeValid(object valueObject) { TextRenderingMode value = (TextRenderingMode) valueObject; return (value == TextRenderingMode.Auto) || (value == TextRenderingMode.Aliased) || (value == TextRenderingMode.Grayscale) || (value == TextRenderingMode.ClearType); } } } // 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
- MediaContextNotificationWindow.cs
- HtmlEmptyTagControlBuilder.cs
- WindowInteractionStateTracker.cs
- MatrixIndependentAnimationStorage.cs
- ActivationArguments.cs
- ClientTarget.cs
- ParameterElementCollection.cs
- RenderingBiasValidation.cs
- Sql8ExpressionRewriter.cs
- CodeCatchClause.cs
- ReachFixedDocumentSerializer.cs
- BeginGetFileNameFromUserRequest.cs
- ISO2022Encoding.cs
- LinqExpressionNormalizer.cs
- EdmFunction.cs
- BindingBase.cs
- SqlXmlStorage.cs
- EmptyImpersonationContext.cs
- DataGridViewLayoutData.cs
- SplineKeyFrames.cs
- OpenFileDialog.cs
- ClockController.cs
- NotifyParentPropertyAttribute.cs
- XomlCompiler.cs
- SBCSCodePageEncoding.cs
- AdornerPresentationContext.cs
- PackageDigitalSignature.cs
- CollectionContainer.cs
- HostingEnvironment.cs
- XmlConvert.cs
- DataGridViewCellEventArgs.cs
- WindowsComboBox.cs
- SendMessageContent.cs
- WebPartVerbCollection.cs
- RawStylusActions.cs
- ColumnHeader.cs
- DefaultHttpHandler.cs
- ICollection.cs
- DirectoryInfo.cs
- DrawingServices.cs
- KeyTimeConverter.cs
- DataViewSetting.cs
- LayoutSettings.cs
- OracleRowUpdatedEventArgs.cs
- PrivilegedConfigurationManager.cs
- FolderLevelBuildProviderCollection.cs
- ResolveMatchesApril2005.cs
- SpeechAudioFormatInfo.cs
- SupportsEventValidationAttribute.cs
- DecimalConstantAttribute.cs
- SafeNativeMethods.cs
- Bold.cs
- SerializationAttributes.cs
- RoleGroup.cs
- PageTheme.cs
- XmlNodeReader.cs
- RoutingBehavior.cs
- InvokeMethodActivityDesigner.cs
- CellLabel.cs
- ContractType.cs
- ProjectionRewriter.cs
- XamlInt32CollectionSerializer.cs
- DefaultBinder.cs
- Tablet.cs
- DataGridViewControlCollection.cs
- ServiceNameCollection.cs
- _AuthenticationState.cs
- ControllableStoryboardAction.cs
- ChtmlPhoneCallAdapter.cs
- LambdaCompiler.Generated.cs
- TableLayout.cs
- CubicEase.cs
- WindowInteropHelper.cs
- ConfigurationManagerHelper.cs
- SmtpMail.cs
- Stroke2.cs
- SafeCoTaskMem.cs
- Opcode.cs
- _LocalDataStore.cs
- SolidBrush.cs
- OdbcParameterCollection.cs
- _TLSstream.cs
- JobDuplex.cs
- EdmSchemaError.cs
- Pts.cs
- DataGridViewSelectedCellCollection.cs
- NameTable.cs
- BufferedStream.cs
- OperationResponse.cs
- UnitySerializationHolder.cs
- RoutingConfiguration.cs
- TemplatePagerField.cs
- PrintDialog.cs
- TreeBuilderBamlTranslator.cs
- SettingsBindableAttribute.cs
- ArrangedElementCollection.cs
- DataRelationPropertyDescriptor.cs
- SemanticValue.cs
- EnumerableCollectionView.cs
- ControlBuilderAttribute.cs