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
- DesignerValidationSummaryAdapter.cs
- MessageBox.cs
- SingleAnimationBase.cs
- ContainerUIElement3D.cs
- ToolStripHighContrastRenderer.cs
- RoutedUICommand.cs
- WebConfigurationManager.cs
- CryptoApi.cs
- TypeForwardedFromAttribute.cs
- Condition.cs
- ToolStripGripRenderEventArgs.cs
- SqlProviderUtilities.cs
- SchemaNames.cs
- TextBoxDesigner.cs
- Win32.cs
- FormViewAutoFormat.cs
- PageFunction.cs
- SmiSettersStream.cs
- RadioButtonStandardAdapter.cs
- RectAnimation.cs
- FixedDocumentSequencePaginator.cs
- HuffCodec.cs
- LogStream.cs
- XmlSerializerNamespaces.cs
- ToolTip.cs
- RowsCopiedEventArgs.cs
- SystemWebExtensionsSectionGroup.cs
- DataColumnMapping.cs
- CodeSnippetCompileUnit.cs
- NTAccount.cs
- ListViewTableCell.cs
- OrderByBuilder.cs
- PropertyMapper.cs
- hresults.cs
- RotationValidation.cs
- BreakRecordTable.cs
- NavigationPropertyAccessor.cs
- TextBlock.cs
- DataPagerField.cs
- ClientUrlResolverWrapper.cs
- OperationAbortedException.cs
- DefaultExpression.cs
- JulianCalendar.cs
- ValidationHelper.cs
- HandlerBase.cs
- XmlSchemaAll.cs
- NetworkStream.cs
- CharAnimationBase.cs
- TextParentUndoUnit.cs
- RegexCode.cs
- ParsedAttributeCollection.cs
- XPathNodeList.cs
- IDReferencePropertyAttribute.cs
- EdmEntityTypeAttribute.cs
- ContentDisposition.cs
- HostProtectionPermission.cs
- HttpProtocolReflector.cs
- BookmarkUndoUnit.cs
- QuadraticBezierSegment.cs
- DescendentsWalkerBase.cs
- ListItemsCollectionEditor.cs
- GridViewPageEventArgs.cs
- PersistencePipeline.cs
- UmAlQuraCalendar.cs
- InputLanguageManager.cs
- EntryWrittenEventArgs.cs
- HtmlListAdapter.cs
- DecoderFallback.cs
- EntityDataReader.cs
- FontWeight.cs
- CollectionType.cs
- UInt16Storage.cs
- AuthenticatingEventArgs.cs
- JoinElimination.cs
- _Rfc2616CacheValidators.cs
- NetworkInformationPermission.cs
- _NegoStream.cs
- OperatorExpressions.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- UpdateTranslator.cs
- SupportsEventValidationAttribute.cs
- VScrollProperties.cs
- BatchParser.cs
- DesignerEventService.cs
- CodeVariableDeclarationStatement.cs
- RoutedEventHandlerInfo.cs
- ManualResetEventSlim.cs
- BufferedReadStream.cs
- ImportedNamespaceContextItem.cs
- ToolStripDropDown.cs
- FrameworkContentElement.cs
- ChannelServices.cs
- bidPrivateBase.cs
- TextTreeObjectNode.cs
- XsltSettings.cs
- CacheVirtualItemsEvent.cs
- FilterQuery.cs
- VectorAnimation.cs
- SplayTreeNode.cs
- LinqDataSourceUpdateEventArgs.cs