Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / TextDecorationUnitValidation.cs / 1 / TextDecorationUnitValidation.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 IsTextDecorationUnitValid(object valueObject)
{
TextDecorationUnit value = (TextDecorationUnit) valueObject;
return (value == TextDecorationUnit.FontRecommended) ||
(value == TextDecorationUnit.FontRenderingEmSize) ||
(value == TextDecorationUnit.Pixel);
}
}
}
// 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 IsTextDecorationUnitValid(object valueObject)
{
TextDecorationUnit value = (TextDecorationUnit) valueObject;
return (value == TextDecorationUnit.FontRecommended) ||
(value == TextDecorationUnit.FontRenderingEmSize) ||
(value == TextDecorationUnit.Pixel);
}
}
}
// 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
- WSHttpBindingBase.cs
- TablePatternIdentifiers.cs
- DecimalAverageAggregationOperator.cs
- DataRelation.cs
- DynamicContractTypeBuilder.cs
- PersonalizationDictionary.cs
- StrokeCollection.cs
- TiffBitmapDecoder.cs
- TransformedBitmap.cs
- Missing.cs
- ProcessModelInfo.cs
- XmlSerializerNamespaces.cs
- RemotingAttributes.cs
- CompilerGeneratedAttribute.cs
- ButtonBaseDesigner.cs
- DefaultCommandExtensionCallback.cs
- LassoSelectionBehavior.cs
- SHA512.cs
- SettingsAttributes.cs
- Point.cs
- StateElement.cs
- PropertyGeneratedEventArgs.cs
- XsdDuration.cs
- HitTestFilterBehavior.cs
- SevenBitStream.cs
- CompilerState.cs
- XmlSchemaAttributeGroupRef.cs
- SplitterCancelEvent.cs
- LongValidator.cs
- Form.cs
- DateTimeSerializationSection.cs
- ToolStripLabel.cs
- PropertyEmitter.cs
- CompressStream.cs
- ColorKeyFrameCollection.cs
- WindowProviderWrapper.cs
- DrawingAttributes.cs
- DbConnectionPoolOptions.cs
- CredentialCache.cs
- EntityDataSourceReferenceGroup.cs
- QuaternionKeyFrameCollection.cs
- QueryCacheEntry.cs
- BitmapEffectGroup.cs
- SplitterEvent.cs
- ErrorItem.cs
- SatelliteContractVersionAttribute.cs
- HttpHandler.cs
- RoleManagerSection.cs
- BindingMAnagerBase.cs
- Oid.cs
- ProxyHwnd.cs
- CollectionsUtil.cs
- StructuredTypeEmitter.cs
- RecipientInfo.cs
- MenuTracker.cs
- SoapInteropTypes.cs
- ProfileBuildProvider.cs
- xsdvalidator.cs
- WebControlAdapter.cs
- exports.cs
- COM2IDispatchConverter.cs
- DetailsViewUpdateEventArgs.cs
- MaterializeFromAtom.cs
- IDispatchConstantAttribute.cs
- RemotingConfigParser.cs
- DecimalFormatter.cs
- BasicKeyConstraint.cs
- ValidationError.cs
- InputQueue.cs
- SiblingIterators.cs
- SerializationInfo.cs
- MachineKeyConverter.cs
- FormViewDeleteEventArgs.cs
- JumpItem.cs
- BamlResourceSerializer.cs
- SQLInt16Storage.cs
- SoapSchemaMember.cs
- GenerateDerivedKeyRequest.cs
- XmlSerializerFactory.cs
- VisualBrush.cs
- Mappings.cs
- ValueTypeFixupInfo.cs
- XmlMessageFormatter.cs
- ReferenceService.cs
- SortedDictionary.cs
- BitmapEffectState.cs
- CqlParser.cs
- Opcode.cs
- X509SecurityTokenAuthenticator.cs
- SQLDouble.cs
- ListViewInsertedEventArgs.cs
- ProcessModelInfo.cs
- ViewKeyConstraint.cs
- ButtonColumn.cs
- AttributeQuery.cs
- StructuralCache.cs
- NotifyInputEventArgs.cs
- ComponentManagerBroker.cs
- UpdateTracker.cs
- OpenTypeCommon.cs