Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / ClearTypeHintValidation.cs / 1305600 / ClearTypeHintValidation.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 IsClearTypeHintValid(object valueObject) { ClearTypeHint value = (ClearTypeHint) valueObject; return (value == ClearTypeHint.Auto) || (value == ClearTypeHint.Enabled); } } } // 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 IsClearTypeHintValid(object valueObject) { ClearTypeHint value = (ClearTypeHint) valueObject; return (value == ClearTypeHint.Auto) || (value == ClearTypeHint.Enabled); } } } // 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
- EntityWrapperFactory.cs
- SqlVersion.cs
- EventSinkHelperWriter.cs
- RegexRunnerFactory.cs
- ParameterCollection.cs
- ClientTargetCollection.cs
- SoapExtension.cs
- BitStack.cs
- ParseHttpDate.cs
- DocComment.cs
- DescendentsWalker.cs
- RegexGroupCollection.cs
- ToolStripScrollButton.cs
- dsa.cs
- ImportContext.cs
- Localizer.cs
- BaseInfoTable.cs
- Unit.cs
- ApplicationBuildProvider.cs
- TypeSemantics.cs
- TableCell.cs
- TreeNodeBindingCollection.cs
- ConnectionManagementElementCollection.cs
- SecurityUtils.cs
- ProtocolsSection.cs
- CompressedStack.cs
- TabletCollection.cs
- Keywords.cs
- ChangePassword.cs
- ResourceType.cs
- PropertyEntry.cs
- StoreItemCollection.cs
- DiagnosticsConfigurationHandler.cs
- BitmapData.cs
- SymbolMethod.cs
- UnicodeEncoding.cs
- PartialCachingAttribute.cs
- JsonCollectionDataContract.cs
- HtmlElementErrorEventArgs.cs
- BitmapImage.cs
- SecurityKeyEntropyMode.cs
- Pair.cs
- DLinqAssociationProvider.cs
- ImageListUtils.cs
- UnsafeNativeMethodsCLR.cs
- OrderedDictionary.cs
- IssuedTokenParametersEndpointAddressElement.cs
- ScriptRegistrationManager.cs
- TextBox.cs
- ParseHttpDate.cs
- ImageListImage.cs
- ValidationPropertyAttribute.cs
- MimeMapping.cs
- QilReference.cs
- IgnorePropertiesAttribute.cs
- DTCTransactionManager.cs
- DbModificationCommandTree.cs
- ObjectStateEntryDbDataRecord.cs
- X509Certificate2.cs
- InvalidPrinterException.cs
- TabItemAutomationPeer.cs
- ReadOnlyDictionary.cs
- HostTimeoutsElement.cs
- CompositionTarget.cs
- RadioButtonFlatAdapter.cs
- MenuTracker.cs
- DoubleLinkListEnumerator.cs
- BaseParaClient.cs
- DefaultValueAttribute.cs
- ScrollViewerAutomationPeer.cs
- streamingZipPartStream.cs
- EventArgs.cs
- MessageBox.cs
- ListViewAutomationPeer.cs
- GPStream.cs
- TimelineGroup.cs
- CustomBindingElement.cs
- SparseMemoryStream.cs
- BitmapDecoder.cs
- MetadataArtifactLoaderCompositeFile.cs
- FontSizeConverter.cs
- AppDomainInfo.cs
- RTLAwareMessageBox.cs
- FtpCachePolicyElement.cs
- XmlSchemaSimpleContentExtension.cs
- AuthenticatingEventArgs.cs
- ViewStateModeByIdAttribute.cs
- BaseCodeDomTreeGenerator.cs
- BitmapSource.cs
- IdentityNotMappedException.cs
- SelectionWordBreaker.cs
- WebPartAddingEventArgs.cs
- PropertyContainer.cs
- OdbcConnectionStringbuilder.cs
- JapaneseCalendar.cs
- controlskin.cs
- FormsAuthenticationTicket.cs
- DataListGeneralPage.cs
- ValidatorCollection.cs
- BindingExpression.cs