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
- RtfControlWordInfo.cs
- DateTimeUtil.cs
- ExternalDataExchangeService.cs
- EntityDesignerDataSourceView.cs
- LightweightCodeGenerator.cs
- ServerValidateEventArgs.cs
- TemplateModeChangedEventArgs.cs
- IncrementalCompileAnalyzer.cs
- SequenceDesigner.cs
- TypeConverterMarkupExtension.cs
- ResolvedKeyFrameEntry.cs
- ConfigXmlComment.cs
- __FastResourceComparer.cs
- FindCriteria11.cs
- RequiredFieldValidator.cs
- ObjectManager.cs
- Polyline.cs
- TextPointer.cs
- TextElementEnumerator.cs
- _PooledStream.cs
- NotificationContext.cs
- Stylesheet.cs
- MouseEventArgs.cs
- MonitoringDescriptionAttribute.cs
- XmlDataSourceNodeDescriptor.cs
- MemberHolder.cs
- ObjectDataSourceSelectingEventArgs.cs
- ExpressionContext.cs
- NativeMethods.cs
- ProgressBarHighlightConverter.cs
- ToolStripItemDataObject.cs
- SqlVisitor.cs
- HtmlButton.cs
- TableRowGroupCollection.cs
- DesignerHelpers.cs
- EnumUnknown.cs
- CodeCommentStatementCollection.cs
- StorageComplexTypeMapping.cs
- StopRoutingHandler.cs
- NonVisualControlAttribute.cs
- MaskedTextBoxTextEditorDropDown.cs
- TextBox.cs
- ProviderMetadataCachedInformation.cs
- ImpersonationContext.cs
- SchemaManager.cs
- ArrayTypeMismatchException.cs
- autovalidator.cs
- SmiSettersStream.cs
- DependencySource.cs
- ContractMapping.cs
- XmlSchemaInclude.cs
- PartitionResolver.cs
- TablePattern.cs
- SQLDouble.cs
- CapiSafeHandles.cs
- HMACRIPEMD160.cs
- MultiPartWriter.cs
- DataGridCommandEventArgs.cs
- ListViewDataItem.cs
- LabelLiteral.cs
- CaseInsensitiveOrdinalStringComparer.cs
- ProgressBar.cs
- DataPagerFieldItem.cs
- MimeXmlImporter.cs
- SqlUDTStorage.cs
- TimeManager.cs
- DockPattern.cs
- DragDeltaEventArgs.cs
- UncommonField.cs
- UIElementPropertyUndoUnit.cs
- RSAOAEPKeyExchangeDeformatter.cs
- EntityDataSourceConfigureObjectContextPanel.cs
- ValueHandle.cs
- TextChangedEventArgs.cs
- SelectedGridItemChangedEvent.cs
- HtmlShim.cs
- DataGridViewBand.cs
- CopyAction.cs
- SettingsPropertyNotFoundException.cs
- Decoder.cs
- SpeechRecognizer.cs
- InfoCardAsymmetricCrypto.cs
- ValidatingPropertiesEventArgs.cs
- ButtonStandardAdapter.cs
- WebEvents.cs
- DocumentXmlWriter.cs
- CallInfo.cs
- DashStyles.cs
- _DomainName.cs
- IndexedEnumerable.cs
- XmlSchemaGroupRef.cs
- ExpressionVisitor.cs
- StreamBodyWriter.cs
- DetailsViewPagerRow.cs
- SizeKeyFrameCollection.cs
- SubMenuStyleCollectionEditor.cs
- _SingleItemRequestCache.cs
- SRef.cs
- WebPartDesigner.cs
- EntityViewGenerator.cs