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
- TrustLevelCollection.cs
- EntitySet.cs
- RowToParametersTransformer.cs
- MimePart.cs
- _SslStream.cs
- ComEventsInfo.cs
- RuleSettingsCollection.cs
- ContentWrapperAttribute.cs
- DynamicControlParameter.cs
- CheckBoxRenderer.cs
- AnnotationService.cs
- TrackingSection.cs
- VisualTarget.cs
- ErrorEventArgs.cs
- TextTreeFixupNode.cs
- DefaultValueConverter.cs
- StateMachine.cs
- IMembershipProvider.cs
- XNameTypeConverter.cs
- DataGridCaption.cs
- TextBoxBase.cs
- CopyAction.cs
- NotifyIcon.cs
- WindowsStartMenu.cs
- SharedHttpTransportManager.cs
- MimeTextImporter.cs
- RequestBringIntoViewEventArgs.cs
- TextFindEngine.cs
- RenamedEventArgs.cs
- CornerRadius.cs
- Brush.cs
- XmlSchemaAttribute.cs
- FontUnitConverter.cs
- TypeForwardedToAttribute.cs
- HttpCookie.cs
- webproxy.cs
- SapiRecoContext.cs
- RepeaterItem.cs
- ItemsControlAutomationPeer.cs
- TypeConvertions.cs
- WinEventTracker.cs
- ProcessManager.cs
- XmlSchemaComplexType.cs
- CollectionViewGroupRoot.cs
- TextServicesDisplayAttributePropertyRanges.cs
- DummyDataSource.cs
- NetCodeGroup.cs
- MainMenu.cs
- propertytag.cs
- TextBox.cs
- InvalidComObjectException.cs
- SelectionPatternIdentifiers.cs
- ContextQuery.cs
- FixedTextContainer.cs
- DataSetUtil.cs
- MessageSmuggler.cs
- ProjectionRewriter.cs
- Int16Storage.cs
- CodeLinePragma.cs
- MenuItemStyle.cs
- SystemWebSectionGroup.cs
- FormViewModeEventArgs.cs
- ViewStateAttachedPropertyFeature.cs
- MergablePropertyAttribute.cs
- BitmapMetadata.cs
- SqlBuilder.cs
- OTFRasterizer.cs
- PropertiesTab.cs
- MLangCodePageEncoding.cs
- SQLSingleStorage.cs
- XmlSchemaSimpleContentRestriction.cs
- ComplexTypeEmitter.cs
- GenericsInstances.cs
- versioninfo.cs
- WebExceptionStatus.cs
- ColumnMapVisitor.cs
- NavigationPropertyEmitter.cs
- LoginViewDesigner.cs
- ClipboardData.cs
- CustomError.cs
- WebPartAuthorizationEventArgs.cs
- SingleKeyFrameCollection.cs
- HtmlInputText.cs
- XPathNodeIterator.cs
- ActionFrame.cs
- PeerUnsafeNativeMethods.cs
- WebPartConnectionCollection.cs
- CodeCompiler.cs
- URIFormatException.cs
- ArglessEventHandlerProxy.cs
- InputBinder.cs
- SpotLight.cs
- EdmFunction.cs
- FixedSOMFixedBlock.cs
- TextTreeInsertUndoUnit.cs
- __TransparentProxy.cs
- CustomAttribute.cs
- DBDataPermissionAttribute.cs
- IndexObject.cs
- GatewayDefinition.cs