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
- Visual3D.cs
- MultiTrigger.cs
- PointHitTestParameters.cs
- Win32SafeHandles.cs
- PropertyInformationCollection.cs
- Soap.cs
- ComboBox.cs
- TopClause.cs
- PersonalizationEntry.cs
- CryptoKeySecurity.cs
- LowerCaseStringConverter.cs
- CompatibleComparer.cs
- XmlNavigatorFilter.cs
- StyleCollectionEditor.cs
- DataView.cs
- LassoSelectionBehavior.cs
- CorrelationManager.cs
- WindowsFormsSynchronizationContext.cs
- SchemaCollectionPreprocessor.cs
- SimpleRecyclingCache.cs
- DeferredSelectedIndexReference.cs
- PersonalizationDictionary.cs
- TargetParameterCountException.cs
- KoreanCalendar.cs
- URLMembershipCondition.cs
- MonitoringDescriptionAttribute.cs
- ErrorFormatterPage.cs
- DataGridColumnStyleMappingNameEditor.cs
- GlyphCache.cs
- UrlEncodedParameterWriter.cs
- TypeLoadException.cs
- EventLogPropertySelector.cs
- MessageSmuggler.cs
- FillErrorEventArgs.cs
- HashAlgorithm.cs
- XmlLangPropertyAttribute.cs
- ToolStrip.cs
- DataGridViewCellMouseEventArgs.cs
- LoginCancelEventArgs.cs
- SqlProvider.cs
- TypeDependencyAttribute.cs
- HyperLinkColumn.cs
- QuaternionKeyFrameCollection.cs
- PenThreadPool.cs
- EntityDataSourceWrapperCollection.cs
- BitmapEffectInput.cs
- RtfNavigator.cs
- BindingsCollection.cs
- ToolboxBitmapAttribute.cs
- StylusEventArgs.cs
- Operator.cs
- LogicalChannel.cs
- XPathNavigatorKeyComparer.cs
- PrincipalPermission.cs
- ProvideValueServiceProvider.cs
- SimpleTypeResolver.cs
- PackWebResponse.cs
- StrokeNodeOperations.cs
- ControlIdConverter.cs
- FixUpCollection.cs
- TypeTypeConverter.cs
- Error.cs
- AdRotator.cs
- ImmutableCollection.cs
- ReadOnlyHierarchicalDataSource.cs
- EncryptedReference.cs
- NullRuntimeConfig.cs
- PropertyDescriptorComparer.cs
- EdmEntityTypeAttribute.cs
- PagesSection.cs
- SmtpDateTime.cs
- SubqueryRules.cs
- XhtmlBasicValidatorAdapter.cs
- WindowsAuthenticationModule.cs
- CodeAssignStatement.cs
- QueryAccessibilityHelpEvent.cs
- PropertyTabAttribute.cs
- MobileUserControlDesigner.cs
- ExpandCollapsePattern.cs
- TextParentUndoUnit.cs
- XmlElementAttributes.cs
- ExecutedRoutedEventArgs.cs
- TdsParserStaticMethods.cs
- FlowDocument.cs
- CopyCodeAction.cs
- HostingPreferredMapPath.cs
- SqlStatistics.cs
- TextCharacters.cs
- ClientSettingsProvider.cs
- CalendarItem.cs
- Bits.cs
- WebPartActionVerb.cs
- XsdBuilder.cs
- BlobPersonalizationState.cs
- UserControl.cs
- EntityUtil.cs
- KnownColorTable.cs
- PassportAuthenticationEventArgs.cs
- BitmapEffectInputData.cs
- ArgumentDesigner.xaml.cs