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
- ByteConverter.cs
- BitStream.cs
- TableColumn.cs
- EditBehavior.cs
- XmlHierarchicalEnumerable.cs
- EFAssociationProvider.cs
- SQLMoney.cs
- ChangePasswordDesigner.cs
- StorageEntityContainerMapping.cs
- LinkDescriptor.cs
- Size3D.cs
- WSSecureConversation.cs
- OleDbFactory.cs
- XPathNodeInfoAtom.cs
- FixedDSBuilder.cs
- StickyNoteHelper.cs
- PassportPrincipal.cs
- DescendentsWalker.cs
- RepeaterItem.cs
- ConfigurationValue.cs
- Message.cs
- HttpFileCollection.cs
- ErrorStyle.cs
- OpenTypeLayout.cs
- CodeSubDirectory.cs
- RenderingBiasValidation.cs
- KeyConverter.cs
- KeyInterop.cs
- PublisherIdentityPermission.cs
- _NestedSingleAsyncResult.cs
- InstanceCreationEditor.cs
- SafeFileMappingHandle.cs
- ClientScriptManager.cs
- VariableQuery.cs
- TreeNodeCollection.cs
- SqlCacheDependencyDatabase.cs
- Parser.cs
- XpsColorContext.cs
- AffineTransform3D.cs
- CurrentChangingEventArgs.cs
- DoubleAnimationUsingKeyFrames.cs
- ControlPaint.cs
- OletxEnlistment.cs
- HierarchicalDataTemplate.cs
- DataKey.cs
- Expander.cs
- listitem.cs
- FixedSOMContainer.cs
- HttpCapabilitiesEvaluator.cs
- SystemTcpStatistics.cs
- RoamingStoreFile.cs
- GroupQuery.cs
- HashMembershipCondition.cs
- CriticalFinalizerObject.cs
- Rect3DValueSerializer.cs
- GenericAuthenticationEventArgs.cs
- SortDescription.cs
- DataGridViewRow.cs
- SqlCacheDependencySection.cs
- DBCommandBuilder.cs
- CodeGroup.cs
- control.ime.cs
- CriticalHandle.cs
- ConfigurationSettings.cs
- NumberFunctions.cs
- SaveFileDialog.cs
- WhiteSpaceTrimStringConverter.cs
- RbTree.cs
- UIElement3D.cs
- wgx_sdk_version.cs
- ConfigurationCollectionAttribute.cs
- DataGridCommandEventArgs.cs
- BamlLocalizationDictionary.cs
- WebBrowserProgressChangedEventHandler.cs
- PropertyInfo.cs
- SingleTagSectionHandler.cs
- ActivityStateRecord.cs
- WCFServiceClientProxyGenerator.cs
- PreviewPrintController.cs
- DataBoundControlAdapter.cs
- LeaseManager.cs
- TypedElement.cs
- Translator.cs
- ForeignKeyConstraint.cs
- ResizeBehavior.cs
- ZipIOLocalFileBlock.cs
- XmlElementAttribute.cs
- StorageModelBuildProvider.cs
- PointAnimationBase.cs
- PrincipalPermission.cs
- DataServiceProcessingPipeline.cs
- CompiledQuery.cs
- FormatterServicesNoSerializableCheck.cs
- ConfigXmlReader.cs
- LocalizationParserHooks.cs
- FSWPathEditor.cs
- StorageMappingFragment.cs
- DetailsViewRow.cs
- HttpResponseWrapper.cs
- updatecommandorderer.cs