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
- PointLightBase.cs
- LinqDataSource.cs
- RegexStringValidatorAttribute.cs
- EDesignUtil.cs
- WebPartConnectionCollection.cs
- baseshape.cs
- IERequestCache.cs
- Int16Converter.cs
- AppearanceEditorPart.cs
- MediaCommands.cs
- XmlCharacterData.cs
- RelationshipNavigation.cs
- ScriptControlManager.cs
- CompoundFileStorageReference.cs
- EdmItemCollection.cs
- SizeAnimationUsingKeyFrames.cs
- FocusChangedEventArgs.cs
- DynamicPropertyHolder.cs
- CharConverter.cs
- TableLayoutPanelCellPosition.cs
- GatewayDefinition.cs
- FontNameEditor.cs
- GenericAuthenticationEventArgs.cs
- RepeatBehavior.cs
- SQLBoolean.cs
- TextDecorations.cs
- MsmqIntegrationChannelFactory.cs
- XPathNodeInfoAtom.cs
- InvokeMethodActivity.cs
- TableRow.cs
- XmlDocumentSchema.cs
- HttpResponse.cs
- PathFigureCollection.cs
- PropertyMappingExceptionEventArgs.cs
- TraceFilter.cs
- _CookieModule.cs
- ContentElement.cs
- CompositeControl.cs
- ResourceDefaultValueAttribute.cs
- MouseWheelEventArgs.cs
- RawContentTypeMapper.cs
- CompilerInfo.cs
- Instrumentation.cs
- ArrayConverter.cs
- StreamInfo.cs
- UniqueEventHelper.cs
- TreeViewEvent.cs
- TabletDevice.cs
- ThicknessKeyFrameCollection.cs
- WorkflowOperationBehavior.cs
- Hashtable.cs
- BorderGapMaskConverter.cs
- CodeTypeParameter.cs
- AnnotationObservableCollection.cs
- ClientSettingsSection.cs
- GPRECTF.cs
- AssociationSetEnd.cs
- DesignerHost.cs
- Animatable.cs
- SqlDataReader.cs
- Operator.cs
- HashCodeCombiner.cs
- FloaterParagraph.cs
- LZCodec.cs
- FileAuthorizationModule.cs
- WebPartsPersonalization.cs
- Misc.cs
- DataTablePropertyDescriptor.cs
- HtmlHead.cs
- UnsafePeerToPeerMethods.cs
- DataGridViewComboBoxCell.cs
- GuidelineSet.cs
- SortExpressionBuilder.cs
- ControlTemplate.cs
- StaticExtension.cs
- XmlSiteMapProvider.cs
- QueryOperationResponseOfT.cs
- EditableRegion.cs
- ParagraphResult.cs
- BlurEffect.cs
- NullRuntimeConfig.cs
- ChameleonKey.cs
- Rule.cs
- ConcurrencyMode.cs
- XmlSchemaSequence.cs
- AccessDataSourceView.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- ApplicationDirectoryMembershipCondition.cs
- DiagnosticsConfigurationHandler.cs
- ProtocolProfile.cs
- TypeSystemProvider.cs
- CompatibleComparer.cs
- RepeaterCommandEventArgs.cs
- ParentUndoUnit.cs
- DiscoveryOperationContext.cs
- TemplatePropertyEntry.cs
- ToolConsole.cs
- TextWriter.cs
- DrawingCollection.cs
- EdmFunctions.cs