Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataMisalignedException.cs
- PerformanceCounterLib.cs
- WindowsGraphics2.cs
- DeflateEmulationStream.cs
- FamilyTypefaceCollection.cs
- Stacktrace.cs
- Popup.cs
- MdImport.cs
- QueryAccessibilityHelpEvent.cs
- WebBaseEventKeyComparer.cs
- XmlSchemaValidationException.cs
- Currency.cs
- TagNameToTypeMapper.cs
- TripleDESCryptoServiceProvider.cs
- IFormattable.cs
- PathSegmentCollection.cs
- ThaiBuddhistCalendar.cs
- WebPartEditVerb.cs
- Normalization.cs
- ConnectivityStatus.cs
- FontCollection.cs
- Normalization.cs
- DesignerSerializationVisibilityAttribute.cs
- TextReturnReader.cs
- JsonServiceDocumentSerializer.cs
- BrushConverter.cs
- XmlTextReaderImpl.cs
- XmlWellformedWriter.cs
- EntityContainerEmitter.cs
- LiteralControl.cs
- CategoryGridEntry.cs
- DesignerActionPanel.cs
- CodeSnippetCompileUnit.cs
- DefaultTextStoreTextComposition.cs
- CompensatableTransactionScopeActivityDesigner.cs
- BStrWrapper.cs
- ValuePatternIdentifiers.cs
- PathSegmentCollection.cs
- SizeLimitedCache.cs
- HttpCookiesSection.cs
- DocumentViewerAutomationPeer.cs
- DataGridViewLinkColumn.cs
- DiscoveryEndpointValidator.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ExtensionFile.cs
- SmuggledIUnknown.cs
- OleDbTransaction.cs
- DesigntimeLicenseContextSerializer.cs
- DataBindingCollectionConverter.cs
- SByte.cs
- BaseDataList.cs
- SpecularMaterial.cs
- PersonalizationStateQuery.cs
- IntSecurity.cs
- BaseTemplateBuildProvider.cs
- RenderingEventArgs.cs
- DynamicMethod.cs
- GradientBrush.cs
- Visual3D.cs
- MimeParameterWriter.cs
- SettingsBindableAttribute.cs
- PeerEndPoint.cs
- CompositeActivityTypeDescriptorProvider.cs
- _SafeNetHandles.cs
- Journal.cs
- GlyphTypeface.cs
- NetworkCredential.cs
- SettingsPropertyNotFoundException.cs
- cookiecontainer.cs
- HeaderedItemsControl.cs
- DocumentReference.cs
- XamlFilter.cs
- SQLDecimal.cs
- regiisutil.cs
- Control.cs
- MutexSecurity.cs
- LassoSelectionBehavior.cs
- GrabHandleGlyph.cs
- DateTimeUtil.cs
- BinaryObjectInfo.cs
- NestedContainer.cs
- PropertyValueEditor.cs
- XmlArrayItemAttributes.cs
- DbProviderServices.cs
- ContourSegment.cs
- PublishLicense.cs
- Label.cs
- ApplicationSecurityInfo.cs
- EventLogEntry.cs
- NamespaceEmitter.cs
- PerformanceCounterLib.cs
- ListenerBinder.cs
- HttpGetProtocolReflector.cs
- NullableDecimalMinMaxAggregationOperator.cs
- UpdateTranslator.cs
- Animatable.cs
- AdornedElementPlaceholder.cs
- DataGridViewDesigner.cs
- ActionFrame.cs
- XmlAttributeAttribute.cs