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
- CultureSpecificStringDictionary.cs
- HttpProfileBase.cs
- TdsParameterSetter.cs
- OpenFileDialog.cs
- Recipient.cs
- WindowsFormsSectionHandler.cs
- ObjectDisposedException.cs
- DataGridViewRowCancelEventArgs.cs
- CustomAttributeBuilder.cs
- CompressionTransform.cs
- ScriptRegistrationManager.cs
- TextParagraph.cs
- DesignerLoader.cs
- HtmlTextArea.cs
- UserPersonalizationStateInfo.cs
- HuffCodec.cs
- LinearKeyFrames.cs
- AssociationEndMember.cs
- ContainerSelectorActiveEvent.cs
- BufferedReadStream.cs
- ReadOnlyNameValueCollection.cs
- _NTAuthentication.cs
- ExpandSegmentCollection.cs
- UnaryNode.cs
- cache.cs
- QuarticEase.cs
- PropertyMapper.cs
- SuppressMergeCheckAttribute.cs
- ISCIIEncoding.cs
- NamespaceList.cs
- UnaryNode.cs
- HostingEnvironmentWrapper.cs
- HttpCookieCollection.cs
- DataGridViewLinkCell.cs
- ConversionContext.cs
- Pair.cs
- CngProvider.cs
- HWStack.cs
- StrokeNodeOperations2.cs
- DataGridViewCellLinkedList.cs
- DebugView.cs
- String.cs
- SingleKeyFrameCollection.cs
- RuntimeEnvironment.cs
- Axis.cs
- StreamReader.cs
- ExpressionConverter.cs
- HwndSource.cs
- CommonDialog.cs
- WebServiceErrorEvent.cs
- DtcInterfaces.cs
- OperationCanceledException.cs
- StateMachineWorkflowDesigner.cs
- Timeline.cs
- DataSourceBooleanViewSchemaConverter.cs
- CompareValidator.cs
- DtdParser.cs
- Psha1DerivedKeyGenerator.cs
- _ShellExpression.cs
- NumberSubstitution.cs
- DbConnectionFactory.cs
- NetworkInterface.cs
- PrimitiveCodeDomSerializer.cs
- ControlCachePolicy.cs
- Parameter.cs
- ContainerParaClient.cs
- FormParameter.cs
- FlowLayout.cs
- DeflateStream.cs
- TagPrefixCollection.cs
- DBCommand.cs
- ListControl.cs
- WebPartDeleteVerb.cs
- DetailsViewPageEventArgs.cs
- ConversionValidationRule.cs
- CommandLineParser.cs
- SortedDictionary.cs
- CodeNamespace.cs
- ReflectPropertyDescriptor.cs
- CursorConverter.cs
- ControlTemplate.cs
- BamlRecords.cs
- TableLayout.cs
- FormViewUpdatedEventArgs.cs
- StyleXamlTreeBuilder.cs
- UpdatePanel.cs
- WebBrowsableAttribute.cs
- TrustManagerMoreInformation.cs
- ContentWrapperAttribute.cs
- SiteOfOriginContainer.cs
- SafeNativeMethods.cs
- EventTask.cs
- SurrogateSelector.cs
- WebPartUserCapability.cs
- DoubleKeyFrameCollection.cs
- ListViewPagedDataSource.cs
- TrayIconDesigner.cs
- BamlStream.cs
- AddInPipelineAttributes.cs
- XNameConverter.cs