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
- ExpressionNormalizer.cs
- Exceptions.cs
- WeakReferenceEnumerator.cs
- Internal.cs
- GroupDescription.cs
- MenuStrip.cs
- oledbconnectionstring.cs
- DocumentApplicationJournalEntry.cs
- TypeConverterAttribute.cs
- WebPartsPersonalizationAuthorization.cs
- LayoutExceptionEventArgs.cs
- URLAttribute.cs
- ToolStripItemImageRenderEventArgs.cs
- ManualResetEvent.cs
- TraceHandlerErrorFormatter.cs
- ScriptIgnoreAttribute.cs
- DeviceContext.cs
- InternalBufferOverflowException.cs
- ArrayList.cs
- StrongNameUtility.cs
- DecimalConverter.cs
- ObjectAnimationUsingKeyFrames.cs
- ItemChangedEventArgs.cs
- GetIndexBinder.cs
- BindMarkupExtensionSerializer.cs
- Compiler.cs
- TextBlock.cs
- Win32Native.cs
- TextParagraphView.cs
- TreeWalkHelper.cs
- MappingItemCollection.cs
- ComPlusTypeLoader.cs
- FieldTemplateUserControl.cs
- CodeAccessSecurityEngine.cs
- DataGridViewCellConverter.cs
- CfgParser.cs
- FontEditor.cs
- XmlExceptionHelper.cs
- ActivityBindForm.cs
- Speller.cs
- TraceHandlerErrorFormatter.cs
- TypeContext.cs
- StrokeFIndices.cs
- FixedDocumentSequencePaginator.cs
- FormsAuthenticationEventArgs.cs
- WebServiceTypeData.cs
- StylusEditingBehavior.cs
- Single.cs
- PageParser.cs
- ManagementInstaller.cs
- WindowsListViewScroll.cs
- UnhandledExceptionEventArgs.cs
- TableParagraph.cs
- AmbientLight.cs
- SafeLocalMemHandle.cs
- QilPatternFactory.cs
- ButtonFlatAdapter.cs
- Button.cs
- HandlerMappingMemo.cs
- OleServicesContext.cs
- Buffer.cs
- GC.cs
- EntityReference.cs
- GenericPrincipal.cs
- JournalEntryListConverter.cs
- ScaleTransform3D.cs
- EncoderBestFitFallback.cs
- LogEntryDeserializer.cs
- ListManagerBindingsCollection.cs
- DebugView.cs
- WebReferencesBuildProvider.cs
- ProvidePropertyAttribute.cs
- TimeZoneInfo.cs
- DesignerProperties.cs
- FileEnumerator.cs
- PenLineCapValidation.cs
- CodePrimitiveExpression.cs
- DataGridViewComboBoxEditingControl.cs
- TemplateBindingExpression.cs
- ThreadSafeList.cs
- nulltextcontainer.cs
- DockProviderWrapper.cs
- OpenFileDialog.cs
- MatrixKeyFrameCollection.cs
- ParameterCollection.cs
- SHA384.cs
- Vector3DIndependentAnimationStorage.cs
- HtmlControlDesigner.cs
- Calendar.cs
- ProtocolsSection.cs
- RSAPKCS1SignatureFormatter.cs
- DrawingContext.cs
- __Filters.cs
- ScriptingProfileServiceSection.cs
- serverconfig.cs
- ComponentCollection.cs
- Optimizer.cs
- MultilineStringConverter.cs
- ExpressionBuilder.cs
- DocumentAutomationPeer.cs