Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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 [....]/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
- Rotation3DAnimation.cs
- FunctionDetailsReader.cs
- SystemIcmpV6Statistics.cs
- HierarchicalDataTemplate.cs
- UnionCqlBlock.cs
- DataServiceResponse.cs
- ZipPackagePart.cs
- TypeInfo.cs
- TypedTableBaseExtensions.cs
- DesignOnlyAttribute.cs
- HtmlTextArea.cs
- HttpVersion.cs
- RegexCaptureCollection.cs
- DbProviderFactoriesConfigurationHandler.cs
- EnumerableCollectionView.cs
- DefaultHttpHandler.cs
- GPStream.cs
- ConfigDefinitionUpdates.cs
- Convert.cs
- CodeCatchClause.cs
- WebBrowsableAttribute.cs
- ExtensionWindowResizeGrip.cs
- TextLineBreak.cs
- DecodeHelper.cs
- HttpException.cs
- FileDialog_Vista.cs
- AbsoluteQuery.cs
- CompressStream.cs
- MetadataArtifactLoader.cs
- DataKey.cs
- XmlDictionaryReaderQuotas.cs
- ExpressionStringBuilder.cs
- OutputScope.cs
- ZipPackage.cs
- EmptyStringExpandableObjectConverter.cs
- EntityDataSourceReferenceGroup.cs
- XmlSchemaDatatype.cs
- DiagnosticTraceSource.cs
- SinglePageViewer.cs
- VarRefManager.cs
- RegexFCD.cs
- Message.cs
- StringTraceRecord.cs
- httpserverutility.cs
- MemberListBinding.cs
- HwndAppCommandInputProvider.cs
- XmlSchemaExternal.cs
- MessageVersionConverter.cs
- StaticExtension.cs
- AnnotationService.cs
- HttpValueCollection.cs
- BackgroundFormatInfo.cs
- HotSpot.cs
- __FastResourceComparer.cs
- GacUtil.cs
- Preprocessor.cs
- EastAsianLunisolarCalendar.cs
- StyleCollection.cs
- HttpApplicationFactory.cs
- EncodedStreamFactory.cs
- DebugView.cs
- DocumentGridContextMenu.cs
- StickyNoteContentControl.cs
- TemplateBamlRecordReader.cs
- Pen.cs
- XmlQualifiedName.cs
- SrgsElementList.cs
- DataSourceSelectArguments.cs
- SystemColors.cs
- RawStylusInputReport.cs
- Binding.cs
- SingleAnimation.cs
- ZeroOpNode.cs
- Cast.cs
- Typeface.cs
- TreeNodeMouseHoverEvent.cs
- Transform3D.cs
- DataGridViewCellParsingEventArgs.cs
- SystemNetHelpers.cs
- WindowsPen.cs
- PrintDocument.cs
- UriSection.cs
- ProcessStartInfo.cs
- RootAction.cs
- MemberAccessException.cs
- TextSegment.cs
- XmlText.cs
- InkPresenter.cs
- InputLanguageCollection.cs
- ObjectSet.cs
- HttpResponseBase.cs
- Marshal.cs
- DesignerDataTableBase.cs
- unsafenativemethodstextservices.cs
- COMException.cs
- SimpleType.cs
- ArrangedElementCollection.cs
- MarkerProperties.cs
- WebPartConnection.cs
- UidManager.cs