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
- TypedRowHandler.cs
- BinHexDecoder.cs
- Set.cs
- PropertyItemInternal.cs
- ConfigurationProviderException.cs
- WaitHandle.cs
- GregorianCalendar.cs
- invalidudtexception.cs
- DataGridViewCheckBoxCell.cs
- DataGridLinkButton.cs
- TerminatorSinks.cs
- RenderOptions.cs
- RetrieveVirtualItemEventArgs.cs
- MouseCaptureWithinProperty.cs
- ClusterSafeNativeMethods.cs
- TypeNameHelper.cs
- TableItemStyle.cs
- Unit.cs
- Profiler.cs
- NavigationFailedEventArgs.cs
- Menu.cs
- CustomError.cs
- EventListener.cs
- TraceData.cs
- FormatException.cs
- XmlAnyAttributeAttribute.cs
- SR.Designer.cs
- ElementHostAutomationPeer.cs
- QuestionEventArgs.cs
- TextElementCollection.cs
- DisposableCollectionWrapper.cs
- XmlArrayItemAttribute.cs
- OLEDB_Enum.cs
- SchemaAttDef.cs
- AvTraceFormat.cs
- MobileControlBuilder.cs
- ApplicationTrust.cs
- WhiteSpaceTrimStringConverter.cs
- WebHttpBindingCollectionElement.cs
- _PooledStream.cs
- DocumentGridPage.cs
- _NestedSingleAsyncResult.cs
- XmlUtil.cs
- TableCellCollection.cs
- CompilerGlobalScopeAttribute.cs
- SqlMethodAttribute.cs
- SecondaryViewProvider.cs
- RuntimeConfig.cs
- HtmlShimManager.cs
- TextAutomationPeer.cs
- InputBuffer.cs
- DuplicateDetector.cs
- PointCollection.cs
- LoadRetryStrategyFactory.cs
- PointKeyFrameCollection.cs
- DataTransferEventArgs.cs
- IListConverters.cs
- ConfigurationException.cs
- PriorityQueue.cs
- JpegBitmapDecoder.cs
- AdornerPresentationContext.cs
- ReflectPropertyDescriptor.cs
- EntityDataSourceContextDisposingEventArgs.cs
- IPHostEntry.cs
- PropertyPathWorker.cs
- OracleDateTime.cs
- SpeechDetectedEventArgs.cs
- ParameterCollection.cs
- SmiMetaData.cs
- IdleTimeoutMonitor.cs
- PopOutPanel.cs
- HttpConfigurationContext.cs
- RequiredFieldValidator.cs
- PageBreakRecord.cs
- OneWayChannelFactory.cs
- BulletChrome.cs
- SecurityTokenTypes.cs
- JsonStringDataContract.cs
- WizardStepBase.cs
- IpcServerChannel.cs
- CodePageUtils.cs
- XmlWrappingReader.cs
- SqlDataReaderSmi.cs
- PropertyGridCommands.cs
- Overlapped.cs
- RegexBoyerMoore.cs
- PreviewPageInfo.cs
- ThicknessConverter.cs
- KeyManager.cs
- DrawListViewColumnHeaderEventArgs.cs
- TimeSpan.cs
- GridEntry.cs
- InstanceCreationEditor.cs
- ErrorWebPart.cs
- HandlerWithFactory.cs
- GuidelineCollection.cs
- ItemDragEvent.cs
- GetPageNumberCompletedEventArgs.cs
- TableLayoutStyleCollection.cs
- WebControlParameterProxy.cs