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
- PropertyPushdownHelper.cs
- AsyncPostBackTrigger.cs
- MSAANativeProvider.cs
- ConstantSlot.cs
- SpecialFolderEnumConverter.cs
- DataSetViewSchema.cs
- WebPartConnectionCollection.cs
- FrameworkElement.cs
- XmlDocumentType.cs
- SecureUICommand.cs
- HtmlForm.cs
- ArrangedElement.cs
- List.cs
- RoleService.cs
- AssertUtility.cs
- CapabilitiesState.cs
- DataGridDesigner.cs
- _SpnDictionary.cs
- FixedSOMLineRanges.cs
- SerializationHelper.cs
- BulletedListEventArgs.cs
- DataTableMapping.cs
- EntityProviderServices.cs
- SoapAttributeOverrides.cs
- WebRequestModuleElement.cs
- ObjectIDGenerator.cs
- HttpCacheParams.cs
- XslCompiledTransform.cs
- TcpStreams.cs
- LinkConverter.cs
- DoubleConverter.cs
- LassoSelectionBehavior.cs
- AutomationAttributeInfo.cs
- AuthenticationManager.cs
- CompilationLock.cs
- DataGridCaption.cs
- RuntimeResourceSet.cs
- CodeTypeMemberCollection.cs
- Paragraph.cs
- Stylesheet.cs
- SecurityKeyType.cs
- XsltSettings.cs
- StrokeCollection.cs
- WizardDesigner.cs
- SqlDataSourceView.cs
- XmlAttributeAttribute.cs
- FileUpload.cs
- RuntimeHandles.cs
- ContourSegment.cs
- Span.cs
- AttachedPropertyBrowsableAttribute.cs
- WindowsToolbarAsMenu.cs
- GridViewCommandEventArgs.cs
- VisemeEventArgs.cs
- UIInitializationException.cs
- MeasurementDCInfo.cs
- SqlMethods.cs
- AssemblyInfo.cs
- TrackingStringDictionary.cs
- SqlDataSource.cs
- SingleStorage.cs
- _AcceptOverlappedAsyncResult.cs
- AssemblyCollection.cs
- SafeViewOfFileHandle.cs
- ReachPrintTicketSerializer.cs
- Point3D.cs
- IsolatedStorage.cs
- StrokeNodeOperations2.cs
- SerializationSectionGroup.cs
- EntityCommand.cs
- ConnectionConsumerAttribute.cs
- EndpointBehaviorElement.cs
- StringArrayConverter.cs
- ImageBrush.cs
- XmlSerializerFactory.cs
- XmlQualifiedName.cs
- KeyManager.cs
- ModifiableIteratorCollection.cs
- SqlProviderServices.cs
- MobilePage.cs
- BamlRecordWriter.cs
- FontFamilyConverter.cs
- XmlStreamStore.cs
- unsafenativemethodstextservices.cs
- StyleCollection.cs
- ClockGroup.cs
- FormsAuthentication.cs
- ExpressionParser.cs
- Odbc32.cs
- COM2PictureConverter.cs
- updateconfighost.cs
- TableCell.cs
- XmlText.cs
- DataRelationCollection.cs
- ArgumentNullException.cs
- LinqDataSourceHelper.cs
- SocketManager.cs
- GlyphRunDrawing.cs
- WmlValidatorAdapter.cs
- OperationAbortedException.cs