Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1305600 / AlignmentYValidation.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 IsAlignmentYValid(object valueObject)
{
AlignmentY value = (AlignmentY) valueObject;
return (value == AlignmentY.Top) ||
(value == AlignmentY.Center) ||
(value == AlignmentY.Bottom);
}
}
}
// 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 IsAlignmentYValid(object valueObject)
{
AlignmentY value = (AlignmentY) valueObject;
return (value == AlignmentY.Top) ||
(value == AlignmentY.Center) ||
(value == AlignmentY.Bottom);
}
}
}
// 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
- DropSource.cs
- ToolStripItemCollection.cs
- WindowHelperService.cs
- SharedStatics.cs
- ClientTargetSection.cs
- ToolStripContentPanelDesigner.cs
- PropertyGridEditorPart.cs
- Table.cs
- VideoDrawing.cs
- ToolStripSplitStackLayout.cs
- IISUnsafeMethods.cs
- IOException.cs
- TdsRecordBufferSetter.cs
- Zone.cs
- FtpWebResponse.cs
- XmlDocumentType.cs
- SqlServices.cs
- ReflectionUtil.cs
- ListBoxAutomationPeer.cs
- SoapInteropTypes.cs
- DynamicRenderer.cs
- EntityProxyFactory.cs
- HandleCollector.cs
- InvokeMethodActivity.cs
- ProxyAttribute.cs
- PageCache.cs
- TextControlDesigner.cs
- ListenerPerfCounters.cs
- SessionIDManager.cs
- HiddenFieldPageStatePersister.cs
- PropertyMappingExceptionEventArgs.cs
- UrlMappingsModule.cs
- ShaderEffect.cs
- NetNamedPipeBindingElement.cs
- ProcessModelSection.cs
- EdmComplexTypeAttribute.cs
- XmlSchemaElement.cs
- XmlKeywords.cs
- Rule.cs
- ElementAction.cs
- ChannelDispatcher.cs
- ConfigurationLockCollection.cs
- ProcessRequestArgs.cs
- ParallelEnumerableWrapper.cs
- Span.cs
- TransactionScope.cs
- VariableReference.cs
- GlyphRunDrawing.cs
- FixedSOMPage.cs
- DataGridPagerStyle.cs
- InheritanceRules.cs
- ProcessModule.cs
- XmlSchemaComplexType.cs
- DynamicObject.cs
- VariableQuery.cs
- DSASignatureFormatter.cs
- MailAddressCollection.cs
- StylusButtonCollection.cs
- SamlNameIdentifierClaimResource.cs
- ClosableStream.cs
- LifetimeMonitor.cs
- PropertyManager.cs
- ExtendedPropertyDescriptor.cs
- Receive.cs
- Identifier.cs
- ImageConverter.cs
- WSSecureConversationFeb2005.cs
- ICspAsymmetricAlgorithm.cs
- SubpageParagraph.cs
- ImageSource.cs
- TextEmbeddedObject.cs
- InstanceDescriptor.cs
- ToolboxControl.cs
- AgileSafeNativeMemoryHandle.cs
- SecUtil.cs
- TreeNodeSelectionProcessor.cs
- Zone.cs
- EntityDataSourceSelectedEventArgs.cs
- BindingContext.cs
- GridLength.cs
- XPathNodeHelper.cs
- Win32.cs
- ContentFilePart.cs
- NamedObject.cs
- IdnMapping.cs
- MetadataException.cs
- ListViewItemEventArgs.cs
- DbProviderFactoriesConfigurationHandler.cs
- SqlNodeAnnotations.cs
- ExpressionEvaluator.cs
- ItemContainerGenerator.cs
- ApplicationFileCodeDomTreeGenerator.cs
- DataTableNewRowEvent.cs
- MultiSelector.cs
- XmlUnspecifiedAttribute.cs
- AuthenticationModuleElement.cs
- UriTemplateLiteralPathSegment.cs
- TraceRecord.cs
- DesignerCategoryAttribute.cs
- PerformanceCounterManager.cs