Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- XomlSerializationHelpers.cs
- PieceDirectory.cs
- PartialCachingControl.cs
- ServerValidateEventArgs.cs
- exports.cs
- DbProviderSpecificTypePropertyAttribute.cs
- RSAPKCS1SignatureFormatter.cs
- FlagsAttribute.cs
- Normalization.cs
- BaseParser.cs
- ModelFunctionTypeElement.cs
- remotingproxy.cs
- SharedPerformanceCounter.cs
- AppDomainAttributes.cs
- BufferBuilder.cs
- basevalidator.cs
- EventManager.cs
- BindingFormattingDialog.cs
- FunctionOverloadResolver.cs
- CompoundFileIOPermission.cs
- DataServiceKeyAttribute.cs
- GenericEnumerator.cs
- MailAddress.cs
- UnsafeNativeMethods.cs
- ObjectDataSourceDesigner.cs
- DbSetClause.cs
- XpsFixedDocumentSequenceReaderWriter.cs
- PassportAuthentication.cs
- GetWinFXPath.cs
- WebZone.cs
- UrlPath.cs
- SafeMarshalContext.cs
- SiteMapNodeCollection.cs
- SrgsRuleRef.cs
- EventHandlerList.cs
- SafeNativeMethods.cs
- VarInfo.cs
- HttpProxyTransportBindingElement.cs
- SessionStateSection.cs
- TimeStampChecker.cs
- PersonalizationProviderCollection.cs
- DoubleSumAggregationOperator.cs
- Misc.cs
- ArrangedElementCollection.cs
- EdmRelationshipRoleAttribute.cs
- TemplateParser.cs
- AdRotator.cs
- SystemIcmpV4Statistics.cs
- XmlSchemaSimpleType.cs
- StoryFragments.cs
- ElementAtQueryOperator.cs
- XMLUtil.cs
- HttpProtocolReflector.cs
- EntitySetBaseCollection.cs
- GenericWebPart.cs
- Durable.cs
- GridView.cs
- SessionKeyExpiredException.cs
- XamlStackWriter.cs
- DataSourceHelper.cs
- UnsafeNativeMethods.cs
- HashSet.cs
- WebPartExportVerb.cs
- ReadOnlyTernaryTree.cs
- UnaryQueryOperator.cs
- XomlCompilerParameters.cs
- BindingList.cs
- RegexNode.cs
- XmlSchemaCollection.cs
- InfoCardBaseException.cs
- StylusDownEventArgs.cs
- SortDescriptionCollection.cs
- DataGridViewSelectedColumnCollection.cs
- MaskedTextBox.cs
- XmlCompatibilityReader.cs
- SiteMapNodeItemEventArgs.cs
- DesignTimeParseData.cs
- PerformanceCounterPermissionEntryCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- TrackingStringDictionary.cs
- LinqExpressionNormalizer.cs
- HelpPage.cs
- ConfigurationManagerHelperFactory.cs
- TraceSwitch.cs
- ExpressionVisitor.cs
- AxisAngleRotation3D.cs
- HtmlInputReset.cs
- ValueSerializerAttribute.cs
- ListControlStringCollectionEditor.cs
- ContentControl.cs
- CollectionBuilder.cs
- XmlSortKeyAccumulator.cs
- ColorDialog.cs
- AffineTransform3D.cs
- UiaCoreProviderApi.cs
- TreeViewItemAutomationPeer.cs
- UpdateTracker.cs
- DesignerActionListCollection.cs
- XmlBinaryWriter.cs
- WebServiceResponseDesigner.cs