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
- Light.cs
- CacheAxisQuery.cs
- ContentFileHelper.cs
- InternalConfigEventArgs.cs
- WpfPayload.cs
- TextDpi.cs
- HScrollBar.cs
- XamlBrushSerializer.cs
- TextBoxLine.cs
- StyleBamlTreeBuilder.cs
- RowUpdatingEventArgs.cs
- SmtpDateTime.cs
- GlobalizationAssembly.cs
- RelationshipWrapper.cs
- StrokeCollection.cs
- NonVisualControlAttribute.cs
- StylusLogic.cs
- CharacterMetrics.cs
- Int32KeyFrameCollection.cs
- WhitespaceRule.cs
- RegistryConfigurationProvider.cs
- TableParagraph.cs
- HiddenFieldPageStatePersister.cs
- SqlUserDefinedAggregateAttribute.cs
- DataControlFieldCell.cs
- XsltArgumentList.cs
- ChannelDispatcher.cs
- BaseCollection.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Literal.cs
- WebPartEditorCancelVerb.cs
- Point3DAnimationBase.cs
- QueryReaderSettings.cs
- SecurityCookieModeValidator.cs
- DeviceContext.cs
- ZoneIdentityPermission.cs
- NoResizeHandleGlyph.cs
- StateMachineExecutionState.cs
- SystemResources.cs
- MetadataProperty.cs
- CharacterShapingProperties.cs
- WindowsListView.cs
- util.cs
- _CacheStreams.cs
- TreeNodeCollection.cs
- FontCacheUtil.cs
- FixedTextView.cs
- BitmapFrameEncode.cs
- DataViewManager.cs
- TraceData.cs
- CounterSampleCalculator.cs
- Int64.cs
- ProfilePropertySettings.cs
- GridViewRowEventArgs.cs
- SizeAnimationBase.cs
- TabControl.cs
- XmlIlTypeHelper.cs
- RSACryptoServiceProvider.cs
- _PooledStream.cs
- RandomNumberGenerator.cs
- PresentationTraceSources.cs
- SessionParameter.cs
- FullTextState.cs
- InstanceView.cs
- XmlHelper.cs
- FilteredXmlReader.cs
- SetterTriggerConditionValueConverter.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- RuntimeEnvironment.cs
- NativeBuffer.cs
- TextModifierScope.cs
- ColorDialog.cs
- WindowsTab.cs
- IdnMapping.cs
- TemplatedMailWebEventProvider.cs
- CategoryNameCollection.cs
- CustomCategoryAttribute.cs
- XmlSerializerSection.cs
- SettingsContext.cs
- QueryExpr.cs
- ComponentEditorForm.cs
- Material.cs
- XmlnsCompatibleWithAttribute.cs
- BoundField.cs
- ExclusiveHandle.cs
- CodeCommentStatement.cs
- LogWriteRestartAreaAsyncResult.cs
- OleCmdHelper.cs
- Guid.cs
- ProcessHostMapPath.cs
- UnauthorizedWebPart.cs
- NegatedConstant.cs
- TableRow.cs
- TextBoxBase.cs
- RectangleConverter.cs
- RootProfilePropertySettingsCollection.cs
- Assert.cs
- CorrelationToken.cs
- HttpCookiesSection.cs
- XmlSiteMapProvider.cs