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
- UncommonField.cs
- MemberAccessException.cs
- ParallelTimeline.cs
- ContextMenuStrip.cs
- _AutoWebProxyScriptWrapper.cs
- ExtenderProvidedPropertyAttribute.cs
- _BasicClient.cs
- LinearGradientBrush.cs
- TraceListeners.cs
- SafeWaitHandle.cs
- SpotLight.cs
- LinqDataView.cs
- ContextStack.cs
- GroupDescription.cs
- Empty.cs
- SecurityElement.cs
- TagPrefixAttribute.cs
- ColumnHeaderConverter.cs
- Wildcard.cs
- EmptyImpersonationContext.cs
- UnitySerializationHolder.cs
- ReflectEventDescriptor.cs
- Debug.cs
- ToolStripDropDownClosingEventArgs.cs
- UserControlCodeDomTreeGenerator.cs
- Image.cs
- Style.cs
- AssertFilter.cs
- PathStreamGeometryContext.cs
- TypePropertyEditor.cs
- ProfileGroupSettingsCollection.cs
- HtmlInputPassword.cs
- SoapAttributeOverrides.cs
- NamespaceDecl.cs
- StylusButtonEventArgs.cs
- StylusButtonCollection.cs
- ProfileManager.cs
- MergeLocalizationDirectives.cs
- DetailsViewUpdatedEventArgs.cs
- ThreadTrace.cs
- CodeCommentStatement.cs
- TaiwanCalendar.cs
- AuthorizationSection.cs
- lengthconverter.cs
- LinearGradientBrush.cs
- controlskin.cs
- PageThemeParser.cs
- TypeBuilder.cs
- ToolStripActionList.cs
- RegexInterpreter.cs
- NullableConverter.cs
- MailMessage.cs
- followingquery.cs
- DataFormat.cs
- XmlSchemaComplexContentExtension.cs
- coordinatorscratchpad.cs
- NumberFormatter.cs
- ButtonChrome.cs
- PackageProperties.cs
- KnownBoxes.cs
- SectionXmlInfo.cs
- WsatTransactionHeader.cs
- DictionaryEditChange.cs
- FixedDocumentSequencePaginator.cs
- SoapSchemaImporter.cs
- Line.cs
- FrameworkTextComposition.cs
- TaiwanCalendar.cs
- ExcludePathInfo.cs
- Utils.cs
- SqlWebEventProvider.cs
- AstNode.cs
- TextParagraph.cs
- DataGridViewDataConnection.cs
- ModelPerspective.cs
- XmlBinaryWriterSession.cs
- DataSetMappper.cs
- DependencyObjectType.cs
- WindowsAuthenticationEventArgs.cs
- HttpListener.cs
- UpdateCompiler.cs
- IdentityHolder.cs
- ConstraintCollection.cs
- SafeNativeMethods.cs
- OLEDB_Util.cs
- ActivityBuilderHelper.cs
- ReplacementText.cs
- TraceListeners.cs
- SafeBitVector32.cs
- XmlSchemaSimpleContentExtension.cs
- ComboBox.cs
- ViewCellSlot.cs
- BitConverter.cs
- CapabilitiesRule.cs
- KeyValueConfigurationElement.cs
- SamlAttribute.cs
- WSFederationHttpBindingCollectionElement.cs
- CodeNamespaceImportCollection.cs
- EncoderNLS.cs
- HttpResponseHeader.cs