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
- TemplateBindingExtensionConverter.cs
- InheritedPropertyChangedEventArgs.cs
- ObjectPersistData.cs
- HybridObjectCache.cs
- OleDbDataAdapter.cs
- MenuTracker.cs
- TextEffectResolver.cs
- TraceLevelStore.cs
- ParentQuery.cs
- PagerSettings.cs
- ReferenceSchema.cs
- ObjectQueryProvider.cs
- FormClosingEvent.cs
- AnnotationComponentManager.cs
- DataGridItemEventArgs.cs
- ListenerSessionConnectionReader.cs
- AutomationPropertyInfo.cs
- NamespaceMapping.cs
- IdentityValidationException.cs
- HtmlUtf8RawTextWriter.cs
- documentsequencetextpointer.cs
- WebPartCollection.cs
- MachineKeyValidationConverter.cs
- FontWeights.cs
- CollectionViewGroup.cs
- ContentElementAutomationPeer.cs
- TreeNodeConverter.cs
- ExtenderProvidedPropertyAttribute.cs
- EventRouteFactory.cs
- CollectionMarkupSerializer.cs
- NotImplementedException.cs
- TreeNodeStyleCollectionEditor.cs
- AnimationLayer.cs
- Mapping.cs
- SqlDataSourceCustomCommandPanel.cs
- EventQueueState.cs
- SrgsOneOf.cs
- MessageBox.cs
- BitmapEffectInput.cs
- FaultReason.cs
- ServerProtocol.cs
- DataGridViewColumnHeaderCell.cs
- InfoCardSymmetricCrypto.cs
- TextRangeEditLists.cs
- SchemaSetCompiler.cs
- UnsafeNativeMethodsPenimc.cs
- TryExpression.cs
- MgmtResManager.cs
- SrgsElementList.cs
- ISessionStateStore.cs
- TextEditorParagraphs.cs
- WindowsScroll.cs
- FrugalMap.cs
- FixedLineResult.cs
- BaseCollection.cs
- BulletChrome.cs
- WaitingCursor.cs
- PersonalizationStateInfo.cs
- ButtonBaseAutomationPeer.cs
- DataGridToolTip.cs
- FlowDocumentPaginator.cs
- IdnMapping.cs
- MenuItemBindingCollection.cs
- TypeConverter.cs
- Transform3DGroup.cs
- GridView.cs
- SqlParameterizer.cs
- MetadataExchangeBindings.cs
- ComplexObject.cs
- OracleDataReader.cs
- InvalidEnumArgumentException.cs
- InstanceOwnerException.cs
- CalendarAutoFormat.cs
- XmlEnumAttribute.cs
- SimpleMailWebEventProvider.cs
- DesignTimeTemplateParser.cs
- OdbcCommand.cs
- InfiniteIntConverter.cs
- ModelItemExtensions.cs
- QueryUtil.cs
- URLAttribute.cs
- Camera.cs
- TTSEvent.cs
- ResourceProperty.cs
- PropertyTabChangedEvent.cs
- EventListenerClientSide.cs
- CompModSwitches.cs
- Substitution.cs
- XmlAggregates.cs
- ConditionBrowserDialog.cs
- RequestContextBase.cs
- ToolStripDropTargetManager.cs
- ClientApiGenerator.cs
- RawStylusActions.cs
- DocumentGridContextMenu.cs
- ReflectionPermission.cs
- TransformPattern.cs
- LinqToSqlWrapper.cs
- UnsafeNativeMethods.cs
- ListViewCancelEventArgs.cs