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
- SHA384CryptoServiceProvider.cs
- ObjectResult.cs
- WindowsAuthenticationModule.cs
- WorkflowLayouts.cs
- ProjectionNode.cs
- ConfigurationErrorsException.cs
- DoWorkEventArgs.cs
- BamlBinaryReader.cs
- MessageQueuePermission.cs
- PropertyDescriptorCollection.cs
- StoreAnnotationsMap.cs
- XmlDocumentFieldSchema.cs
- ValidationPropertyAttribute.cs
- ChannelPoolSettingsElement.cs
- PathSegment.cs
- ControlCodeDomSerializer.cs
- Hex.cs
- ContentValidator.cs
- CodeObjectCreateExpression.cs
- StringValidatorAttribute.cs
- CompilerLocalReference.cs
- CacheDependency.cs
- Cursors.cs
- DataGridViewColumnHeaderCell.cs
- StoreContentChangedEventArgs.cs
- XamlTypeMapperSchemaContext.cs
- ColorBlend.cs
- UnknownMessageReceivedEventArgs.cs
- ShaderEffect.cs
- XmlAttributeCollection.cs
- Transform.cs
- MulticastNotSupportedException.cs
- HostExecutionContextManager.cs
- Unit.cs
- HwndHostAutomationPeer.cs
- StorageBasedPackageProperties.cs
- InputGestureCollection.cs
- OrderByQueryOptionExpression.cs
- BindingMAnagerBase.cs
- NativeActivityFaultContext.cs
- ClaimComparer.cs
- ToolStripDropDownItem.cs
- RubberbandSelector.cs
- BaseTemplateCodeDomTreeGenerator.cs
- FloaterBaseParagraph.cs
- LeftCellWrapper.cs
- cryptoapiTransform.cs
- XmlTextAttribute.cs
- ParseNumbers.cs
- RangeExpression.cs
- ResolvedKeyFrameEntry.cs
- WindowsImpersonationContext.cs
- HttpCachePolicyWrapper.cs
- AbstractSvcMapFileLoader.cs
- DbConnectionHelper.cs
- SqlBuilder.cs
- LabelDesigner.cs
- ConstraintCollection.cs
- RecordConverter.cs
- ListControl.cs
- ElementHostAutomationPeer.cs
- MediaElement.cs
- NetNamedPipeSecurityElement.cs
- PageContentAsyncResult.cs
- MDIClient.cs
- XmlSchemaValidator.cs
- AsyncResult.cs
- DrawingContext.cs
- ParserExtension.cs
- FormsAuthenticationModule.cs
- Compilation.cs
- XsltContext.cs
- PriorityRange.cs
- TraceLog.cs
- DictionaryTraceRecord.cs
- ModuleBuilderData.cs
- Rules.cs
- NominalTypeEliminator.cs
- NativeActivityMetadata.cs
- CompositeControl.cs
- BaseTemplateBuildProvider.cs
- IODescriptionAttribute.cs
- ShapingEngine.cs
- ExtensionMethods.cs
- ControlParameter.cs
- WebPartCancelEventArgs.cs
- SystemIcmpV4Statistics.cs
- DataControlLinkButton.cs
- CodeIndexerExpression.cs
- SQLGuid.cs
- ResizeGrip.cs
- ToolboxItem.cs
- FacetChecker.cs
- mactripleDES.cs
- DataSourceProvider.cs
- SettingsPropertyValueCollection.cs
- PanelContainerDesigner.cs
- GroupBox.cs
- DateTimeParse.cs
- MgmtResManager.cs