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
- ProcessMonitor.cs
- WindowsTokenRoleProvider.cs
- ItemsChangedEventArgs.cs
- DataGridTableCollection.cs
- PropertyOrder.cs
- BindingCollection.cs
- FileChangesMonitor.cs
- EncodingNLS.cs
- LoginCancelEventArgs.cs
- DeliveryRequirementsAttribute.cs
- InstanceDescriptor.cs
- HttpClientCertificate.cs
- InlineCollection.cs
- PublisherMembershipCondition.cs
- XmlDocument.cs
- WorkflowRuntimeEndpoint.cs
- DSACryptoServiceProvider.cs
- CellPartitioner.cs
- LoginView.cs
- XamlFigureLengthSerializer.cs
- CTreeGenerator.cs
- DataGridViewColumn.cs
- RunClient.cs
- DBCommand.cs
- BitmapEffectOutputConnector.cs
- ProfileSettings.cs
- WarningException.cs
- XmlAttributeAttribute.cs
- SqlReorderer.cs
- PersistStreamTypeWrapper.cs
- HwndMouseInputProvider.cs
- ActiveXMessageFormatter.cs
- BinaryUtilClasses.cs
- WebEvents.cs
- OleDbConnection.cs
- _NetRes.cs
- TranslateTransform3D.cs
- MarkupExtensionReturnTypeAttribute.cs
- Decorator.cs
- WebRequestModuleElementCollection.cs
- WindowsTab.cs
- Attributes.cs
- WebPartConnectVerb.cs
- DispatcherEventArgs.cs
- xamlnodes.cs
- Point3D.cs
- _ProxyChain.cs
- ChildTable.cs
- SmiRequestExecutor.cs
- WebPartConnectionsDisconnectVerb.cs
- MouseGestureValueSerializer.cs
- OpCodes.cs
- ProviderConnectionPointCollection.cs
- HandlerBase.cs
- ParenthesizePropertyNameAttribute.cs
- XMLSchema.cs
- RightNameExpirationInfoPair.cs
- GridViewActionList.cs
- CanonicalFontFamilyReference.cs
- SmtpReplyReaderFactory.cs
- AuthenticationServiceManager.cs
- JoinSymbol.cs
- ReflectionServiceProvider.cs
- XmlSchemaSimpleTypeRestriction.cs
- Scalars.cs
- Select.cs
- FixedSOMGroup.cs
- SoapMessage.cs
- HttpListenerRequest.cs
- comcontractssection.cs
- MaterialGroup.cs
- UpdateProgress.cs
- SingleKeyFrameCollection.cs
- OleDbConnection.cs
- TagMapCollection.cs
- LogicalExpr.cs
- InputLanguage.cs
- FaultDescription.cs
- Rect3DConverter.cs
- DetailsViewRowCollection.cs
- RouteValueDictionary.cs
- WriteFileContext.cs
- SqlConnectionPoolGroupProviderInfo.cs
- WmlLiteralTextAdapter.cs
- EventLog.cs
- DirectoryNotFoundException.cs
- SystemMulticastIPAddressInformation.cs
- HybridWebProxyFinder.cs
- FixedTextSelectionProcessor.cs
- Subtree.cs
- GlyphInfoList.cs
- CfgParser.cs
- Privilege.cs
- NumericUpDownAcceleration.cs
- WeakEventManager.cs
- LiteralControl.cs
- HtmlInputButton.cs
- NamedObject.cs
- MsmqAppDomainProtocolHandler.cs
- Clipboard.cs