Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Shared / MS / Internal / Generated / TextDecorationLocationValidation.cs / 1 / TextDecorationLocationValidation.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 IsTextDecorationLocationValid(object valueObject)
{
TextDecorationLocation value = (TextDecorationLocation) valueObject;
return (value == TextDecorationLocation.Underline) ||
(value == TextDecorationLocation.OverLine) ||
(value == TextDecorationLocation.Strikethrough) ||
(value == TextDecorationLocation.Baseline);
}
}
}
// 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 IsTextDecorationLocationValid(object valueObject)
{
TextDecorationLocation value = (TextDecorationLocation) valueObject;
return (value == TextDecorationLocation.Underline) ||
(value == TextDecorationLocation.OverLine) ||
(value == TextDecorationLocation.Strikethrough) ||
(value == TextDecorationLocation.Baseline);
}
}
}
// 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
- DataControlFieldCell.cs
- Quad.cs
- TransformerTypeCollection.cs
- GeneratedContractType.cs
- WebEncodingValidatorAttribute.cs
- Utils.cs
- AlignmentXValidation.cs
- Bookmark.cs
- ObjRef.cs
- Keywords.cs
- RSAPKCS1SignatureDeformatter.cs
- QilUnary.cs
- TableParagraph.cs
- __ConsoleStream.cs
- XmlSchemaFacet.cs
- MulticastNotSupportedException.cs
- DataServiceResponse.cs
- TextWriter.cs
- CommandConverter.cs
- Utils.cs
- ChangeBlockUndoRecord.cs
- DataGrid.cs
- XPathNavigatorKeyComparer.cs
- RegisteredHiddenField.cs
- TreeNode.cs
- QueryContinueDragEventArgs.cs
- SmiEventSink.cs
- ListDictionary.cs
- messageonlyhwndwrapper.cs
- EventRoute.cs
- FormsAuthenticationConfiguration.cs
- RegexCharClass.cs
- BinaryKeyIdentifierClause.cs
- DetailsViewPagerRow.cs
- AutoGeneratedFieldProperties.cs
- ErrorEventArgs.cs
- SchemaTableColumn.cs
- CompilerLocalReference.cs
- Connector.cs
- PropertyNames.cs
- XmlComment.cs
- InternalConfirm.cs
- TCPListener.cs
- DoubleAnimationUsingKeyFrames.cs
- Metadata.cs
- DesigntimeLicenseContext.cs
- CalendarTable.cs
- WebPartPersonalization.cs
- Menu.cs
- PerformanceCounterPermission.cs
- RegistrationServices.cs
- RoleGroup.cs
- IconHelper.cs
- Win32SafeHandles.cs
- ViewCellSlot.cs
- TableCell.cs
- TemplatedAdorner.cs
- SrgsOneOf.cs
- TypedElement.cs
- ServiceReflector.cs
- CheckBoxPopupAdapter.cs
- ApplyImportsAction.cs
- WebPartMovingEventArgs.cs
- RowsCopiedEventArgs.cs
- EditorPart.cs
- BinHexEncoder.cs
- CodeIdentifiers.cs
- WebBrowser.cs
- DataGridViewButtonCell.cs
- FilteredDataSetHelper.cs
- DateBoldEvent.cs
- Scene3D.cs
- WebPartConnectionsCloseVerb.cs
- StylusSystemGestureEventArgs.cs
- PersonalizableAttribute.cs
- KeyMatchBuilder.cs
- IdentitySection.cs
- externdll.cs
- XmlNodeWriter.cs
- UserControlAutomationPeer.cs
- CompareValidator.cs
- SByteStorage.cs
- OleDbReferenceCollection.cs
- TemplateDefinition.cs
- DesignerActionHeaderItem.cs
- FileInfo.cs
- ProgramPublisher.cs
- ExcCanonicalXml.cs
- OrthographicCamera.cs
- LocalValueEnumerator.cs
- shaperfactory.cs
- GenericPrincipal.cs
- SqlParameterizer.cs
- ActivityScheduledRecord.cs
- UserControlDocumentDesigner.cs
- SecurityManager.cs
- SqlHelper.cs
- OdbcCommandBuilder.cs
- GeneralTransform.cs
- ContentControl.cs