Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- hebrewshape.cs
- InputQueue.cs
- RemotingSurrogateSelector.cs
- ListenerConstants.cs
- safex509handles.cs
- Exception.cs
- ImmutableCollection.cs
- QueryOperator.cs
- TemplateXamlParser.cs
- DefaultTextStore.cs
- OneOfElement.cs
- HttpRuntimeSection.cs
- storepermission.cs
- BinaryParser.cs
- OleDbPropertySetGuid.cs
- WindowExtensionMethods.cs
- FastEncoder.cs
- HtmlGenericControl.cs
- RangeBaseAutomationPeer.cs
- MenuItemAutomationPeer.cs
- TextServicesContext.cs
- ExeContext.cs
- CodeExporter.cs
- ClonableStack.cs
- SocketElement.cs
- HtmlTable.cs
- AuthenticationServiceManager.cs
- PolyBezierSegment.cs
- BindingMAnagerBase.cs
- SponsorHelper.cs
- PersistenceContextEnlistment.cs
- ConstructorNeedsTagAttribute.cs
- CodeLinePragma.cs
- PermissionSetTriple.cs
- ZipIOExtraFieldPaddingElement.cs
- CfgParser.cs
- PrincipalPermissionMode.cs
- IsolatedStorage.cs
- VectorCollection.cs
- controlskin.cs
- InternalSendMessage.cs
- CompilerTypeWithParams.cs
- SinglePageViewer.cs
- Soap12ProtocolReflector.cs
- ListViewDataItem.cs
- PerfService.cs
- CategoriesDocumentFormatter.cs
- PermissionSetEnumerator.cs
- HTMLTextWriter.cs
- wgx_sdk_version.cs
- HotSpotCollection.cs
- PriorityQueue.cs
- ProfileBuildProvider.cs
- PrintPageEvent.cs
- SHA512Managed.cs
- UnsafeNativeMethods.cs
- DataGridViewToolTip.cs
- ParallelTimeline.cs
- Events.cs
- XamlReaderHelper.cs
- RelationshipEndMember.cs
- NotificationContext.cs
- Material.cs
- XmlSerializationWriter.cs
- ProtectedConfigurationProviderCollection.cs
- ObjectHelper.cs
- MimeMultiPart.cs
- SingletonInstanceContextProvider.cs
- NumericUpDown.cs
- PointCollection.cs
- FragmentNavigationEventArgs.cs
- XmlDomTextWriter.cs
- RichTextBoxContextMenu.cs
- ModelTypeConverter.cs
- WindowsButton.cs
- IndexedGlyphRun.cs
- ColumnMapProcessor.cs
- HwndHost.cs
- FactoryMaker.cs
- LineInfo.cs
- sqlstateclientmanager.cs
- DataBoundControl.cs
- ElementNotEnabledException.cs
- EnumerationRangeValidationUtil.cs
- Light.cs
- ConnectionOrientedTransportChannelListener.cs
- Vector3DCollectionConverter.cs
- Point3DCollectionConverter.cs
- ExtentCqlBlock.cs
- HMACRIPEMD160.cs
- MimePart.cs
- AnyReturnReader.cs
- PasswordRecovery.cs
- EpmCustomContentSerializer.cs
- IndexOutOfRangeException.cs
- KnownBoxes.cs
- SessionPageStatePersister.cs
- AmbientEnvironment.cs
- ExpressionBuilder.cs
- ImpersonationContext.cs