Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1 / TextDecorationLocationValidation.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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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 IsTextDecorationLocationValid(object valueObject) { TextDecorationLocation value = (TextDecorationLocation) valueObject; return (value == TextDecorationLocation.Underline) || (value == TextDecorationLocation.OverLine) || (value == TextDecorationLocation.Strikethrough) || (value == TextDecorationLocation.Baseline); } } } // 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
- XPathScanner.cs
- DataTableMapping.cs
- UidManager.cs
- ColorPalette.cs
- ExtendedProtectionPolicy.cs
- DesignSurfaceManager.cs
- XsltInput.cs
- MasterPageCodeDomTreeGenerator.cs
- XmlWrappingWriter.cs
- AccessDataSourceDesigner.cs
- PixelFormats.cs
- GeneratedContractType.cs
- DurationConverter.cs
- _AutoWebProxyScriptWrapper.cs
- RoleGroupCollectionEditor.cs
- FormViewInsertEventArgs.cs
- KeyGesture.cs
- X509Chain.cs
- EnumUnknown.cs
- NavigateUrlConverter.cs
- ClrProviderManifest.cs
- SqlDataSourceFilteringEventArgs.cs
- SqlStream.cs
- Span.cs
- MetabaseSettings.cs
- MetadataImporterQuotas.cs
- EntityClientCacheKey.cs
- RoutedEventConverter.cs
- WriteTimeStream.cs
- ExecutedRoutedEventArgs.cs
- DispatcherProcessingDisabled.cs
- PassportAuthentication.cs
- CertificateElement.cs
- ValidationRule.cs
- IsolatedStoragePermission.cs
- EmissiveMaterial.cs
- FontConverter.cs
- EventHandlers.cs
- EditorReuseAttribute.cs
- MemberHolder.cs
- DataGridItemEventArgs.cs
- ArithmeticException.cs
- SoapElementAttribute.cs
- TextAnchor.cs
- RecognizedAudio.cs
- HtmlAnchor.cs
- CompilationSection.cs
- ImageButton.cs
- UnsettableComboBox.cs
- StateChangeEvent.cs
- XamlWriter.cs
- MessagePropertyDescriptionCollection.cs
- DecimalAnimation.cs
- Int16AnimationBase.cs
- IOException.cs
- DataShape.cs
- SiteMapPath.cs
- AdRotator.cs
- COM2EnumConverter.cs
- CellRelation.cs
- MetadataSource.cs
- ProviderManager.cs
- CatalogZoneBase.cs
- PolyQuadraticBezierSegment.cs
- MetaModel.cs
- DataBoundControlHelper.cs
- TextFormatterHost.cs
- StyleXamlParser.cs
- GacUtil.cs
- XmlSerializationReader.cs
- _Events.cs
- ItemsPanelTemplate.cs
- AutomationElementIdentifiers.cs
- MinimizableAttributeTypeConverter.cs
- AccessKeyManager.cs
- TreeSet.cs
- ListViewItemMouseHoverEvent.cs
- RenderContext.cs
- MsmqBindingBase.cs
- GeneralTransform3DGroup.cs
- CompiledQueryCacheEntry.cs
- XmlStringTable.cs
- SqlClientWrapperSmiStreamChars.cs
- WindowsTooltip.cs
- ToolStripGrip.cs
- DataRecordInfo.cs
- SHA512.cs
- Scene3D.cs
- MarginCollapsingState.cs
- DataGridCommandEventArgs.cs
- SafeHandles.cs
- CodeTypeReferenceCollection.cs
- NegatedCellConstant.cs
- FixedBufferAttribute.cs
- PackageStore.cs
- DataView.cs
- ObjectListItemCollection.cs
- DBDataPermission.cs
- SerialPinChanges.cs
- objectresult_tresulttype.cs