Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StrokeCollection2.cs
- ModelProperty.cs
- MenuStrip.cs
- Validator.cs
- ObjectDataSourceEventArgs.cs
- PtsContext.cs
- StaticContext.cs
- SoapAttributeOverrides.cs
- HTTPAPI_VERSION.cs
- CLSCompliantAttribute.cs
- HttpListenerContext.cs
- UnmanagedMemoryStreamWrapper.cs
- Int64AnimationUsingKeyFrames.cs
- StorageInfo.cs
- ListControlConvertEventArgs.cs
- BasicExpressionVisitor.cs
- Header.cs
- NonBatchDirectoryCompiler.cs
- ExtentKey.cs
- SiteMap.cs
- UnmanagedMemoryStream.cs
- SpeechEvent.cs
- PriorityQueue.cs
- EncryptedType.cs
- ErrorWrapper.cs
- ArgumentsParser.cs
- SiteMapPath.cs
- DomNameTable.cs
- SqlClientPermission.cs
- ArrangedElement.cs
- _FixedSizeReader.cs
- EntityConnection.cs
- BindingCompleteEventArgs.cs
- ObservableCollectionDefaultValueFactory.cs
- ContainerSelectorActiveEvent.cs
- XmlArrayItemAttribute.cs
- SourceSwitch.cs
- PageCodeDomTreeGenerator.cs
- OdbcInfoMessageEvent.cs
- EditorZoneDesigner.cs
- ConfigXmlSignificantWhitespace.cs
- TextParagraphCache.cs
- ISessionStateStore.cs
- HttpModule.cs
- FormViewUpdatedEventArgs.cs
- safelinkcollection.cs
- ManipulationCompletedEventArgs.cs
- StringPropertyBuilder.cs
- DelegateHelpers.cs
- OdbcCommandBuilder.cs
- RC2CryptoServiceProvider.cs
- InfoCardSymmetricCrypto.cs
- LineServices.cs
- COM2PictureConverter.cs
- SingleAnimationUsingKeyFrames.cs
- SignatureTargetIdManager.cs
- ConsoleKeyInfo.cs
- AbsoluteQuery.cs
- NameHandler.cs
- SystemIcmpV6Statistics.cs
- RelativeSource.cs
- DeferredTextReference.cs
- PixelFormat.cs
- XmlWhitespace.cs
- CacheMemory.cs
- SelectorItemAutomationPeer.cs
- RelationshipConverter.cs
- ContentControl.cs
- DirectoryRootQuery.cs
- HideDisabledControlAdapter.cs
- XPathPatternParser.cs
- ConditionalAttribute.cs
- MappingException.cs
- Tile.cs
- PointHitTestParameters.cs
- ProgressPage.cs
- GestureRecognizer.cs
- ProtocolReflector.cs
- CommandDesigner.cs
- SettingsBase.cs
- FreezableOperations.cs
- InputMethodStateChangeEventArgs.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- HorizontalAlignConverter.cs
- PageHandlerFactory.cs
- ListBoxDesigner.cs
- Repeater.cs
- DbTransaction.cs
- Char.cs
- TypeBuilderInstantiation.cs
- TextEditorSelection.cs
- EntityViewContainer.cs
- RemoteHelper.cs
- SettingsProviderCollection.cs
- SQLRoleProvider.cs
- NameValueCollection.cs
- Cloud.cs
- ShutDownListener.cs
- WorkflowQueueInfo.cs
- TextBlockAutomationPeer.cs