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
- Soap11ServerProtocol.cs
- String.cs
- DataGridViewCell.cs
- ContainerSelectorActiveEvent.cs
- coordinatorfactory.cs
- PathFigure.cs
- XamlUtilities.cs
- XmlSchemaComplexContentExtension.cs
- InputScopeManager.cs
- WebServiceReceive.cs
- StreamUpgradeInitiator.cs
- SubclassTypeValidatorAttribute.cs
- DispatcherExceptionFilterEventArgs.cs
- StylusButton.cs
- ScrollViewerAutomationPeer.cs
- SEHException.cs
- ListBoxItemWrapperAutomationPeer.cs
- CheckoutException.cs
- ModuleConfigurationInfo.cs
- TextEditorMouse.cs
- ProtocolsConfigurationEntry.cs
- ItemCheckedEvent.cs
- TrackingMemoryStream.cs
- CodeNamespace.cs
- SchemeSettingElementCollection.cs
- CodeIterationStatement.cs
- ISAPIRuntime.cs
- LingerOption.cs
- ConnectionConsumerAttribute.cs
- DbFunctionCommandTree.cs
- UnionCodeGroup.cs
- PlanCompilerUtil.cs
- InternalCache.cs
- ParameterBuilder.cs
- PropertyItemInternal.cs
- PrePrepareMethodAttribute.cs
- login.cs
- coordinatorfactory.cs
- QueryStatement.cs
- UriScheme.cs
- Validator.cs
- CodeSubDirectory.cs
- TrackBarRenderer.cs
- BitmapInitialize.cs
- NamedPipeWorkerProcess.cs
- TerminatorSinks.cs
- DataSetViewSchema.cs
- CalendarTable.cs
- TdsRecordBufferSetter.cs
- PassportIdentity.cs
- TagMapInfo.cs
- SqlPersonalizationProvider.cs
- ChangePassword.cs
- ConsoleKeyInfo.cs
- ObjectParameter.cs
- WebReferencesBuildProvider.cs
- LineInfo.cs
- VirtualDirectoryMapping.cs
- PropertyTabChangedEvent.cs
- ToolStripDropDownMenu.cs
- BinHexEncoder.cs
- HMACRIPEMD160.cs
- Query.cs
- ProfilePropertySettings.cs
- RectAnimation.cs
- EntityParameter.cs
- AjaxFrameworkAssemblyAttribute.cs
- XmlSchemaObjectTable.cs
- DataServiceRequest.cs
- CryptoApi.cs
- LinkConverter.cs
- UpdateTranslator.cs
- IResourceProvider.cs
- XmlRawWriter.cs
- Condition.cs
- CommandSet.cs
- RightsManagementResourceHelper.cs
- DataBindingExpressionBuilder.cs
- BackgroundFormatInfo.cs
- DecimalMinMaxAggregationOperator.cs
- InkPresenterAutomationPeer.cs
- XPathNodeList.cs
- OrElse.cs
- ClientEventManager.cs
- WindowAutomationPeer.cs
- dataprotectionpermission.cs
- ReferencedAssembly.cs
- TextTreeUndoUnit.cs
- SystemUdpStatistics.cs
- ProviderBase.cs
- TreeNodeStyleCollection.cs
- DataGridViewToolTip.cs
- TrackingStringDictionary.cs
- SqlLiftWhereClauses.cs
- BufferAllocator.cs
- SafeRegistryKey.cs
- PipelineModuleStepContainer.cs
- StreamGeometry.cs
- TextBox.cs
- Bidi.cs