Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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 { 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 IsTextDecorationUnitValid(object valueObject) { TextDecorationUnit value = (TextDecorationUnit) valueObject; return (value == TextDecorationUnit.FontRecommended) || (value == TextDecorationUnit.FontRenderingEmSize) || (value == TextDecorationUnit.Pixel); } } } // 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
- DataGridCaption.cs
- TemplateBuilder.cs
- ResourceReferenceKeyNotFoundException.cs
- TextBounds.cs
- DesignerVerbCollection.cs
- Int32CollectionValueSerializer.cs
- dtdvalidator.cs
- SwitchAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- ConnectionStringSettings.cs
- ObjectAssociationEndMapping.cs
- FixedSOMImage.cs
- BaseDataBoundControl.cs
- BaseUriHelper.cs
- SystemTcpConnection.cs
- ExpressionPrefixAttribute.cs
- ConstrainedDataObject.cs
- SingleResultAttribute.cs
- EdmScalarPropertyAttribute.cs
- RefExpr.cs
- IsolatedStoragePermission.cs
- PtsHelper.cs
- TextFormatterHost.cs
- DesignTimeTemplateParser.cs
- InfiniteIntConverter.cs
- LogicalExpr.cs
- Span.cs
- SHA512Managed.cs
- PerspectiveCamera.cs
- updateconfighost.cs
- PrintPreviewControl.cs
- NeutralResourcesLanguageAttribute.cs
- SecurityToken.cs
- Wizard.cs
- GlyphRun.cs
- TextTreeTextNode.cs
- ReliableDuplexSessionChannel.cs
- AttachmentService.cs
- TextEffect.cs
- ButtonFieldBase.cs
- XmlSchemas.cs
- XmlnsPrefixAttribute.cs
- ToggleButtonAutomationPeer.cs
- DropShadowEffect.cs
- TextRenderer.cs
- ColumnHeaderConverter.cs
- ProxyWebPartManager.cs
- ListSourceHelper.cs
- InternalRelationshipCollection.cs
- SafeUserTokenHandle.cs
- BeginStoryboard.cs
- ControlValuePropertyAttribute.cs
- InternalsVisibleToAttribute.cs
- Accessors.cs
- PeerFlooder.cs
- SystemColorTracker.cs
- SoapSchemaImporter.cs
- CompiledQueryCacheKey.cs
- DataTable.cs
- Int32CAMarshaler.cs
- CatalogZoneBase.cs
- WindowsScrollBarBits.cs
- Int32Rect.cs
- LineUtil.cs
- XmlSchemas.cs
- SortExpressionBuilder.cs
- HttpHandlerAction.cs
- _NegoState.cs
- CodeAttributeArgument.cs
- ScrollBarAutomationPeer.cs
- InputBuffer.cs
- SelectionProcessor.cs
- SQLInt32Storage.cs
- EdmError.cs
- HttpContext.cs
- LexicalChunk.cs
- EventLogPermission.cs
- Wildcard.cs
- HtmlSelect.cs
- HttpInputStream.cs
- PathSegment.cs
- UnsafeNativeMethods.cs
- ServerValidateEventArgs.cs
- PolygonHotSpot.cs
- MessageQuerySet.cs
- ObjectDataSourceMethodEventArgs.cs
- CssTextWriter.cs
- OpCodes.cs
- XmlException.cs
- SmtpAuthenticationManager.cs
- BinaryObjectInfo.cs
- ConstraintManager.cs
- EnumBuilder.cs
- WorkflowInstanceQuery.cs
- XamlPathDataSerializer.cs
- DocumentOrderQuery.cs
- XmlReflectionImporter.cs
- ClientUriBehavior.cs
- JournalEntry.cs
- ChannelServices.cs