Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / AlignmentXValidation.cs / 1 / AlignmentXValidation.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.Media
{
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 IsAlignmentXValid(object valueObject)
{
AlignmentX value = (AlignmentX) valueObject;
return (value == AlignmentX.Left) ||
(value == AlignmentX.Center) ||
(value == AlignmentX.Right);
}
}
}
// 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.Media
{
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 IsAlignmentXValid(object valueObject)
{
AlignmentX value = (AlignmentX) valueObject;
return (value == AlignmentX.Left) ||
(value == AlignmentX.Center) ||
(value == AlignmentX.Right);
}
}
}
// 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
- DataGridViewCellMouseEventArgs.cs
- LocatorPart.cs
- ProxyElement.cs
- RegisteredArrayDeclaration.cs
- PolyBezierSegment.cs
- ResourcesGenerator.cs
- LogicalExpr.cs
- MobileControlsSectionHelper.cs
- RegisteredExpandoAttribute.cs
- Literal.cs
- SspiHelper.cs
- SoapSchemaMember.cs
- ToolStripDropDownDesigner.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- HttpRequest.cs
- TrackBarRenderer.cs
- HTTPRemotingHandler.cs
- DataServiceHost.cs
- RadioButtonFlatAdapter.cs
- DataGridRow.cs
- InlineCategoriesDocument.cs
- WebPartCollection.cs
- ToolStripRenderEventArgs.cs
- ContentFilePart.cs
- SpeakCompletedEventArgs.cs
- HScrollProperties.cs
- StyleTypedPropertyAttribute.cs
- AppDomainProtocolHandler.cs
- StretchValidation.cs
- FlowDocumentScrollViewer.cs
- WebPartDeleteVerb.cs
- BamlWriter.cs
- ProfileGroupSettingsCollection.cs
- BamlTreeUpdater.cs
- BaseDataBoundControl.cs
- AssertFilter.cs
- Activity.cs
- SortFieldComparer.cs
- EncryptedPackageFilter.cs
- AssemblyNameUtility.cs
- FlowLayout.cs
- SqlCacheDependencyDatabaseCollection.cs
- LassoSelectionBehavior.cs
- ThousandthOfEmRealDoubles.cs
- VsPropertyGrid.cs
- MobileComponentEditorPage.cs
- MappingModelBuildProvider.cs
- BlockUIContainer.cs
- TextTreeTextElementNode.cs
- CodeExpressionCollection.cs
- ClientSettingsProvider.cs
- RepeaterItem.cs
- RuntimeArgumentHandle.cs
- TaskFormBase.cs
- CryptoKeySecurity.cs
- UICuesEvent.cs
- StringExpressionSet.cs
- ComponentCodeDomSerializer.cs
- ProxyBuilder.cs
- EventSinkHelperWriter.cs
- CurrencyManager.cs
- RangeBaseAutomationPeer.cs
- ClientBuildManager.cs
- CreateParams.cs
- ObjectMemberMapping.cs
- ChannelBinding.cs
- Renderer.cs
- ResXFileRef.cs
- StateMachineAction.cs
- ConfigurationValues.cs
- UInt64.cs
- ComponentRenameEvent.cs
- EntityViewGenerationConstants.cs
- OrderedDictionaryStateHelper.cs
- ValueSerializerAttribute.cs
- Page.cs
- PerformanceCounterLib.cs
- SessionIDManager.cs
- RegistrationServices.cs
- UdpChannelFactory.cs
- WebPartConnectionsConnectVerb.cs
- GetLedgerRequest.cs
- SimplePropertyEntry.cs
- TextTreeTextElementNode.cs
- XmlObjectSerializerReadContext.cs
- clipboard.cs
- DelegateTypeInfo.cs
- XamlStyleSerializer.cs
- FontEmbeddingManager.cs
- OutOfProcStateClientManager.cs
- SystemUnicastIPAddressInformation.cs
- PrintingPermissionAttribute.cs
- LZCodec.cs
- ValidationPropertyAttribute.cs
- Certificate.cs
- __ConsoleStream.cs
- Regex.cs
- CodeLabeledStatement.cs
- RightsManagementInformation.cs
- DocumentSequence.cs