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
- AlphabeticalEnumConverter.cs
- TypeUtil.cs
- Int32CAMarshaler.cs
- UiaCoreProviderApi.cs
- DocumentXmlWriter.cs
- PackageDigitalSignature.cs
- MappingException.cs
- SortedDictionary.cs
- EventPrivateKey.cs
- AppDomainProtocolHandler.cs
- brushes.cs
- MultiView.cs
- Gdiplus.cs
- DataGridViewDesigner.cs
- ActivityExecutor.cs
- SecurityPermission.cs
- DocumentViewerBaseAutomationPeer.cs
- WindowsBrush.cs
- CellTreeNode.cs
- GroupAggregateExpr.cs
- DeleteBookmarkScope.cs
- RadioButtonStandardAdapter.cs
- Stack.cs
- RsaSecurityToken.cs
- DataShape.cs
- HttpFileCollection.cs
- CryptoConfig.cs
- ActiveXHost.cs
- DBAsyncResult.cs
- OrthographicCamera.cs
- ProvidePropertyAttribute.cs
- RIPEMD160Managed.cs
- GeometryConverter.cs
- ToolStripDropTargetManager.cs
- _AcceptOverlappedAsyncResult.cs
- CountdownEvent.cs
- TrustManager.cs
- XsltArgumentList.cs
- HorizontalAlignConverter.cs
- SyndicationItemFormatter.cs
- SwitchElementsCollection.cs
- ServiceThrottlingElement.cs
- PermissionSetTriple.cs
- SecurityResources.cs
- ArrangedElement.cs
- OLEDB_Util.cs
- LocatorGroup.cs
- DataGridViewAdvancedBorderStyle.cs
- Matrix3D.cs
- FusionWrap.cs
- ComPersistableTypeElement.cs
- DynamicActivityProperty.cs
- FontFamilyConverter.cs
- ViewManager.cs
- OLEDB_Enum.cs
- VerbConverter.cs
- Grid.cs
- SynchronizingStream.cs
- EntityCommandCompilationException.cs
- ProvidersHelper.cs
- ProfileSection.cs
- AstNode.cs
- ListDictionaryInternal.cs
- HttpValueCollection.cs
- VersionedStreamOwner.cs
- _NetworkingPerfCounters.cs
- SqlDataReaderSmi.cs
- LongSumAggregationOperator.cs
- FormClosedEvent.cs
- ForEachAction.cs
- HierarchicalDataBoundControl.cs
- IDReferencePropertyAttribute.cs
- InternalBufferOverflowException.cs
- Parameter.cs
- ReplyChannel.cs
- GridViewHeaderRowPresenter.cs
- ByteConverter.cs
- ContainerParaClient.cs
- ResourceProviderFactory.cs
- RedistVersionInfo.cs
- PaperSize.cs
- GiveFeedbackEvent.cs
- ParserExtension.cs
- RegistrySecurity.cs
- StorageRoot.cs
- DependencyObjectValidator.cs
- LogEntrySerializer.cs
- RawStylusSystemGestureInputReport.cs
- NegotiationTokenProvider.cs
- QilValidationVisitor.cs
- ContextProperty.cs
- OrCondition.cs
- RawUIStateInputReport.cs
- ReflectPropertyDescriptor.cs
- SplineKeyFrames.cs
- SoapParser.cs
- HtmlTitle.cs
- MouseActionValueSerializer.cs
- StaticExtension.cs
- SqlDataSourceView.cs