Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- Task.cs
- DependencyObjectCodeDomSerializer.cs
- LinearGradientBrush.cs
- AffineTransform3D.cs
- MemberRelationshipService.cs
- AnimationStorage.cs
- TileBrush.cs
- mediaeventargs.cs
- MimeMultiPart.cs
- GridPattern.cs
- SiteOfOriginContainer.cs
- AbsoluteQuery.cs
- PolyQuadraticBezierSegment.cs
- ByteAnimationUsingKeyFrames.cs
- UnsafeNativeMethods.cs
- ClientCultureInfo.cs
- XmlSerializationWriter.cs
- PropertyValue.cs
- EntityDataReader.cs
- SecurityContextTokenValidationException.cs
- ListControlActionList.cs
- FixedPosition.cs
- DynamicILGenerator.cs
- IntSecurity.cs
- ComponentRenameEvent.cs
- VersionPair.cs
- ExclusiveNamedPipeTransportManager.cs
- MultiAsyncResult.cs
- ProxyAttribute.cs
- Figure.cs
- DataGridViewLayoutData.cs
- StringBuilder.cs
- LedgerEntryCollection.cs
- ConfigPathUtility.cs
- DocumentsTrace.cs
- BaseTemplateCodeDomTreeGenerator.cs
- FunctionImportElement.cs
- WindowsSlider.cs
- CodeNamespaceCollection.cs
- LogEntryUtils.cs
- BinaryReader.cs
- followingsibling.cs
- SymmetricCryptoHandle.cs
- ListControlConvertEventArgs.cs
- SoapHeaderException.cs
- DataFormats.cs
- BidPrivateBase.cs
- DataGridTable.cs
- TraceSwitch.cs
- SelectedCellsCollection.cs
- CollectionChangeEventArgs.cs
- PageContent.cs
- ObjectDataSourceFilteringEventArgs.cs
- CompensationToken.cs
- XmlBufferReader.cs
- CodeExporter.cs
- Registry.cs
- MediaScriptCommandRoutedEventArgs.cs
- ObjectDataSourceSelectingEventArgs.cs
- ConfigurationManagerHelper.cs
- RestHandlerFactory.cs
- BStrWrapper.cs
- SystemIPInterfaceStatistics.cs
- MediaScriptCommandRoutedEventArgs.cs
- Stack.cs
- ContentPresenter.cs
- ScrollBarRenderer.cs
- WeakEventTable.cs
- WebEventTraceProvider.cs
- DataGridViewDataErrorEventArgs.cs
- TimestampInformation.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- XmlText.cs
- DataGridViewDataErrorEventArgs.cs
- MDIWindowDialog.cs
- ForwardPositionQuery.cs
- DataGridViewButtonCell.cs
- sqlcontext.cs
- ModuleBuilderData.cs
- ConfigurationStrings.cs
- ListViewGroup.cs
- DataColumnPropertyDescriptor.cs
- XmlSortKey.cs
- Stream.cs
- CompressionTracing.cs
- DescendantOverDescendantQuery.cs
- TypeDefinition.cs
- ContextMenuStrip.cs
- DocumentPageView.cs
- ResourceSet.cs
- ToolStripDropDownButton.cs
- WorkflowOperationInvoker.cs
- TabControlAutomationPeer.cs
- ParseHttpDate.cs
- MemoryResponseElement.cs
- ServiceNameElementCollection.cs
- AppLevelCompilationSectionCache.cs
- CheckBoxRenderer.cs
- LayoutEvent.cs
- KnownIds.cs