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
- XmlSchemaCollection.cs
- StringBuilder.cs
- NullRuntimeConfig.cs
- CodeDelegateCreateExpression.cs
- prompt.cs
- MessageLoggingElement.cs
- ResourceCategoryAttribute.cs
- ProjectedSlot.cs
- RootProfilePropertySettingsCollection.cs
- XPathScanner.cs
- StringArrayConverter.cs
- TransformCollection.cs
- XPathItem.cs
- MarkupExtensionReturnTypeAttribute.cs
- Repeater.cs
- SparseMemoryStream.cs
- XmlDocumentFragment.cs
- ConnectionPoint.cs
- AllMembershipCondition.cs
- QuotedPrintableStream.cs
- InternalPermissions.cs
- EntityDataSourceMemberPath.cs
- ResourceSetExpression.cs
- XmlCharType.cs
- Viewport2DVisual3D.cs
- Vector3DCollectionConverter.cs
- TemplatePropertyEntry.cs
- ToolStripButton.cs
- QilFactory.cs
- ApplicationServiceManager.cs
- ColumnClickEvent.cs
- PageRanges.cs
- MaterialGroup.cs
- WebPartTransformerCollection.cs
- AssemblyBuilder.cs
- AutoGeneratedFieldProperties.cs
- ToolStripDropTargetManager.cs
- Serializer.cs
- ToolStripDropDownButton.cs
- ListCollectionView.cs
- KnownColorTable.cs
- BitStream.cs
- CircleEase.cs
- ComponentCommands.cs
- SparseMemoryStream.cs
- StreamWriter.cs
- XmlSecureResolver.cs
- Rect.cs
- StrongName.cs
- WeakReferenceList.cs
- MutexSecurity.cs
- AnnotationHelper.cs
- EmptyStringExpandableObjectConverter.cs
- FormatConvertedBitmap.cs
- ConditionalAttribute.cs
- DataGridColumnCollection.cs
- ArgIterator.cs
- ToolStripSeparatorRenderEventArgs.cs
- CodeTypeConstructor.cs
- AsmxEndpointPickerExtension.cs
- CommonGetThemePartSize.cs
- MenuAdapter.cs
- AsyncDataRequest.cs
- TemplateNameScope.cs
- CodeDirectoryCompiler.cs
- DbTransaction.cs
- CompositeKey.cs
- TextSpanModifier.cs
- StringValidator.cs
- MenuItemBindingCollection.cs
- HtmlAnchor.cs
- EditorAttribute.cs
- EndpointDispatcherTable.cs
- DataList.cs
- ColorAnimationBase.cs
- CollectionViewGroup.cs
- GeometryGroup.cs
- ConditionValidator.cs
- LayoutEditorPart.cs
- PageTheme.cs
- RichTextBox.cs
- NativeMethods.cs
- CacheRequest.cs
- OleDbSchemaGuid.cs
- SingleConverter.cs
- Activator.cs
- BufferModesCollection.cs
- DataObject.cs
- DetailsView.cs
- ToolStripTemplateNode.cs
- XmlnsDefinitionAttribute.cs
- ReadWriteSpinLock.cs
- TimeoutValidationAttribute.cs
- SimpleHandlerFactory.cs
- SecureStringHasher.cs
- ArrangedElementCollection.cs
- OracleParameterBinding.cs
- ComboBoxRenderer.cs
- X500Name.cs
- ValidateNames.cs