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
- VisualBrush.cs
- XmlComplianceUtil.cs
- Screen.cs
- PrintEvent.cs
- UnsafeNativeMethods.cs
- PingOptions.cs
- _SingleItemRequestCache.cs
- DateTimeOffsetStorage.cs
- LambdaReference.cs
- SafeFileHandle.cs
- WindowsAuthenticationModule.cs
- CombinedTcpChannel.cs
- PriorityItem.cs
- SpeechUI.cs
- CacheDependency.cs
- CodeLabeledStatement.cs
- EntityClassGenerator.cs
- DeploymentSectionCache.cs
- XamlTreeBuilderBamlRecordWriter.cs
- ZipPackage.cs
- ChannelSinkStacks.cs
- AtomParser.cs
- WebRequestModulesSection.cs
- CallTemplateAction.cs
- ListViewAutomationPeer.cs
- SpellerHighlightLayer.cs
- WebPartHelpVerb.cs
- ModulesEntry.cs
- Preprocessor.cs
- DataGridColumnHeaderCollection.cs
- IOThreadTimer.cs
- RtType.cs
- WpfXamlType.cs
- DataServiceResponse.cs
- UniqueEventHelper.cs
- XMLSchema.cs
- ColorConverter.cs
- BulletDecorator.cs
- ServiceManager.cs
- AspNetHostingPermission.cs
- ProcessStartInfo.cs
- Random.cs
- AndMessageFilterTable.cs
- Font.cs
- ModuleBuilder.cs
- nulltextnavigator.cs
- ObjectPropertyMapping.cs
- QilStrConcatenator.cs
- ForEachAction.cs
- AppSettingsExpressionBuilder.cs
- DbSource.cs
- PaginationProgressEventArgs.cs
- Grant.cs
- StringDictionaryEditor.cs
- Floater.cs
- ValidationHelper.cs
- ContextProperty.cs
- InvalidPrinterException.cs
- LongValidator.cs
- ArrayWithOffset.cs
- Events.cs
- DebugHandleTracker.cs
- SqlException.cs
- LoginCancelEventArgs.cs
- SystemIPv6InterfaceProperties.cs
- XPathDocumentNavigator.cs
- StyleCollection.cs
- DocumentEventArgs.cs
- OleDbReferenceCollection.cs
- CodeAttributeArgumentCollection.cs
- ThicknessKeyFrameCollection.cs
- SecurityPolicySection.cs
- WmlPhoneCallAdapter.cs
- ToolStripPanelCell.cs
- ParallelDesigner.cs
- HttpCachePolicyElement.cs
- CallSiteOps.cs
- ClassDataContract.cs
- ScriptingRoleServiceSection.cs
- TextParagraphProperties.cs
- TimeZone.cs
- AstNode.cs
- DataConnectionHelper.cs
- DiagnosticTrace.cs
- odbcmetadatafactory.cs
- TypedReference.cs
- Stopwatch.cs
- EnumConverter.cs
- SystemIPInterfaceStatistics.cs
- IListConverters.cs
- MarshalByRefObject.cs
- SecUtil.cs
- BitmapPalettes.cs
- WebPartConnection.cs
- Console.cs
- MenuItemBinding.cs
- Package.cs
- TextParagraph.cs
- Imaging.cs
- X509ThumbprintKeyIdentifierClause.cs