Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1305600 / 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
- TextShapeableCharacters.cs
- XslTransform.cs
- SubclassTypeValidator.cs
- EventMap.cs
- UnsafeNativeMethods.cs
- LinqExpressionNormalizer.cs
- Converter.cs
- DocumentPageView.cs
- EventMappingSettings.cs
- listitem.cs
- RijndaelManaged.cs
- ProfessionalColorTable.cs
- WebPartConnectionsCloseVerb.cs
- CodeDomDecompiler.cs
- ProvidersHelper.cs
- GeometryGroup.cs
- DateTimeEditor.cs
- ExpressionPrinter.cs
- invalidudtexception.cs
- ProcessModule.cs
- ClipboardProcessor.cs
- TypedTableBaseExtensions.cs
- ExtensionDataReader.cs
- BrowserCapabilitiesCompiler.cs
- StateDesignerConnector.cs
- PropertyTabChangedEvent.cs
- ThemeDictionaryExtension.cs
- DBConnection.cs
- SystemResourceKey.cs
- SHA256.cs
- UpdatableWrapper.cs
- PrintingPermissionAttribute.cs
- SqlNodeTypeOperators.cs
- XmlBoundElement.cs
- Message.cs
- StringArrayConverter.cs
- IODescriptionAttribute.cs
- arabicshape.cs
- ConstructorNeedsTagAttribute.cs
- TabletDeviceInfo.cs
- ThreadStaticAttribute.cs
- StringArrayEditor.cs
- DesignerRegionMouseEventArgs.cs
- DateTimeFormatInfoScanner.cs
- WindowsGrip.cs
- TemplateManager.cs
- IsolatedStorageFilePermission.cs
- NamedElement.cs
- NumberFunctions.cs
- HttpServerChannel.cs
- ColumnResult.cs
- AuthenticationSection.cs
- ItemCheckEvent.cs
- InheritablePropertyChangeInfo.cs
- FileDataSourceCache.cs
- Utils.cs
- ListManagerBindingsCollection.cs
- Selection.cs
- SafeNativeMethodsMilCoreApi.cs
- SpeakProgressEventArgs.cs
- DbProviderSpecificTypePropertyAttribute.cs
- XAMLParseException.cs
- ListDataHelper.cs
- TargetException.cs
- StyleXamlTreeBuilder.cs
- SqlDataSourceFilteringEventArgs.cs
- EnumerableCollectionView.cs
- XpsResourcePolicy.cs
- SqlMethods.cs
- Int16KeyFrameCollection.cs
- File.cs
- SendKeys.cs
- EntityDesignerBuildProvider.cs
- GZipStream.cs
- PolicyManager.cs
- SHA1CryptoServiceProvider.cs
- PropertyMap.cs
- ReferencedAssembly.cs
- SystemResourceHost.cs
- ToolstripProfessionalRenderer.cs
- bidPrivateBase.cs
- DomNameTable.cs
- PointF.cs
- XmlNode.cs
- BinaryNode.cs
- WebZone.cs
- PkcsMisc.cs
- AppDomainFactory.cs
- CTreeGenerator.cs
- Rfc2898DeriveBytes.cs
- FlowDocumentPage.cs
- SwitchExpression.cs
- DrawingContextDrawingContextWalker.cs
- FixedTextSelectionProcessor.cs
- RangeValidator.cs
- ScriptReference.cs
- ReaderWriterLockWrapper.cs
- StagingAreaInputItem.cs
- XmlComplianceUtil.cs
- MemberHolder.cs