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
- EventDescriptorCollection.cs
- Processor.cs
- OuterGlowBitmapEffect.cs
- SchemaSetCompiler.cs
- RegexMatch.cs
- GatewayIPAddressInformationCollection.cs
- GeneratedCodeAttribute.cs
- ObjectConverter.cs
- ResourceReferenceExpression.cs
- RootDesignerSerializerAttribute.cs
- PageRequestManager.cs
- TrackingMemoryStreamFactory.cs
- MemberMaps.cs
- BuilderPropertyEntry.cs
- HttpTransportSecurityElement.cs
- DateTimeFormatInfo.cs
- WpfWebRequestHelper.cs
- MatrixUtil.cs
- PropertyInformationCollection.cs
- ApplicationGesture.cs
- ExpressionBinding.cs
- MenuAdapter.cs
- HtmlEmptyTagControlBuilder.cs
- PolicyChain.cs
- FeatureManager.cs
- InterleavedZipPartStream.cs
- XmlSerializerVersionAttribute.cs
- DataBindEngine.cs
- ThrowOnMultipleAssignment.cs
- SessionIDManager.cs
- SiblingIterators.cs
- EncryptedPackageFilter.cs
- TreeNodeEventArgs.cs
- LinearKeyFrames.cs
- ReadOnlyDictionary.cs
- FSWPathEditor.cs
- ValidationPropertyAttribute.cs
- ObjectSet.cs
- ObjectListShowCommandsEventArgs.cs
- SafeBitVector32.cs
- AdapterSwitches.cs
- ResourceReferenceExpression.cs
- TimeStampChecker.cs
- WebUtil.cs
- XmlSchemaSet.cs
- linebase.cs
- ChildrenQuery.cs
- WorkflowMessageEventHandler.cs
- PtsHost.cs
- FaultCallbackWrapper.cs
- DbProviderManifest.cs
- CompilerErrorCollection.cs
- AxHost.cs
- SqlDataSourceCommandEventArgs.cs
- MissingFieldException.cs
- DataServiceException.cs
- EntityContainerRelationshipSet.cs
- NotifyInputEventArgs.cs
- ApplicationSecurityManager.cs
- RawStylusInputCustomDataList.cs
- SchemaAttDef.cs
- OracleNumber.cs
- EdgeProfileValidation.cs
- HtmlFormAdapter.cs
- ConfigViewGenerator.cs
- Triplet.cs
- DoWorkEventArgs.cs
- AnonymousIdentificationSection.cs
- FrameAutomationPeer.cs
- _Events.cs
- SetStoryboardSpeedRatio.cs
- UserPreferenceChangedEventArgs.cs
- CroppedBitmap.cs
- BCryptSafeHandles.cs
- EnumType.cs
- JsonFormatReaderGenerator.cs
- SystemIcmpV6Statistics.cs
- EncoderFallback.cs
- RegisterResponseInfo.cs
- TextParentUndoUnit.cs
- SimpleBitVector32.cs
- ApplicationActivator.cs
- ComplexTypeEmitter.cs
- InternalResources.cs
- MILUtilities.cs
- ComplexPropertyEntry.cs
- ModuleBuilderData.cs
- _LazyAsyncResult.cs
- ControlPropertyNameConverter.cs
- SystemWebCachingSectionGroup.cs
- AttributeExtensions.cs
- EditBehavior.cs
- FocusChangedEventArgs.cs
- TextInfo.cs
- ProcessModelInfo.cs
- GridViewAutomationPeer.cs
- MenuBase.cs
- TTSEvent.cs
- DeadCharTextComposition.cs
- Debug.cs