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
- XmlSchemaSimpleTypeRestriction.cs
- SuppressIldasmAttribute.cs
- LayoutDump.cs
- GridViewPageEventArgs.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- StorageSetMapping.cs
- MSHTMLHost.cs
- RuntimeConfig.cs
- XmlILOptimizerVisitor.cs
- ProfileService.cs
- DoubleConverter.cs
- SqlPersonalizationProvider.cs
- TemplateBindingExtensionConverter.cs
- ConditionedDesigner.cs
- XappLauncher.cs
- SingleAnimationUsingKeyFrames.cs
- OleDbStruct.cs
- ChannelDispatcher.cs
- SharedStatics.cs
- FormatConvertedBitmap.cs
- FormViewInsertedEventArgs.cs
- MailAddressCollection.cs
- OdbcErrorCollection.cs
- XmlJsonWriter.cs
- MasterPageCodeDomTreeGenerator.cs
- BufferBuilder.cs
- smtppermission.cs
- StrokeFIndices.cs
- LogSwitch.cs
- EdgeModeValidation.cs
- ISO2022Encoding.cs
- ProgressChangedEventArgs.cs
- GeneralTransform.cs
- GridViewRowEventArgs.cs
- ObjRef.cs
- Set.cs
- TypeHelpers.cs
- ArrayHelper.cs
- DoubleUtil.cs
- ServiceSecurityAuditBehavior.cs
- DynamicUpdateCommand.cs
- MediaScriptCommandRoutedEventArgs.cs
- SqlDataSourceEnumerator.cs
- EmbeddedObject.cs
- PropertyStore.cs
- ObjectCacheSettings.cs
- TreeWalker.cs
- NativeWindow.cs
- TransformerConfigurationWizardBase.cs
- InstalledVoice.cs
- IndexOutOfRangeException.cs
- MonthCalendarDesigner.cs
- oledbmetadatacolumnnames.cs
- GridToolTip.cs
- ProcessModelSection.cs
- MdiWindowListStrip.cs
- FileDialogCustomPlacesCollection.cs
- EventSinkHelperWriter.cs
- DeclaredTypeElementCollection.cs
- AutoGeneratedField.cs
- PrintingPermissionAttribute.cs
- CallbackCorrelationInitializer.cs
- SqlTypesSchemaImporter.cs
- DataServiceQueryProvider.cs
- ButtonField.cs
- VisualStyleInformation.cs
- SelectionEditor.cs
- OleAutBinder.cs
- DataFormat.cs
- RsaSecurityToken.cs
- OleDbConnectionInternal.cs
- PointCollection.cs
- NamespaceMapping.cs
- StickyNote.cs
- NullableDecimalAverageAggregationOperator.cs
- XmlWriterTraceListener.cs
- FormViewUpdateEventArgs.cs
- RawAppCommandInputReport.cs
- NativeMethods.cs
- QilInvokeEarlyBound.cs
- DomainLiteralReader.cs
- BamlLocalizer.cs
- CommonGetThemePartSize.cs
- autovalidator.cs
- XsltContext.cs
- XmlTextWriter.cs
- CollectionViewProxy.cs
- FixedSOMImage.cs
- BitmapEffectvisualstate.cs
- IdentifierCollection.cs
- querybuilder.cs
- Popup.cs
- PropertyPathWorker.cs
- XmlStreamStore.cs
- ComponentEvent.cs
- StrongNameIdentityPermission.cs
- InternalControlCollection.cs
- ItemType.cs
- Restrictions.cs
- RoutedCommand.cs