Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Shared / MS / Internal / Generated / AlignmentYValidation.cs / 1 / AlignmentYValidation.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// This file was generated, please do not edit it directly.
//
// Please see [....]/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
- LocalBuilder.cs
- LineMetrics.cs
- SuppressMergeCheckAttribute.cs
- translator.cs
- CdpEqualityComparer.cs
- ListMarkerSourceInfo.cs
- TableLayoutStyle.cs
- DataGridViewSelectedCellCollection.cs
- AsyncInvokeContext.cs
- RoleManagerModule.cs
- TreeNodeConverter.cs
- SoapSchemaImporter.cs
- FontInfo.cs
- SafeTimerHandle.cs
- ScriptComponentDescriptor.cs
- GridViewCommandEventArgs.cs
- PointHitTestParameters.cs
- SmiEventStream.cs
- FixedSOMTableRow.cs
- ListItemDetailViewAttribute.cs
- ByteConverter.cs
- ETagAttribute.cs
- DESCryptoServiceProvider.cs
- ListCollectionView.cs
- ThemeInfoAttribute.cs
- Decimal.cs
- StorageEntityContainerMapping.cs
- MsmqHostedTransportConfiguration.cs
- SchemeSettingElementCollection.cs
- WebBrowsableAttribute.cs
- SmtpNetworkElement.cs
- Selector.cs
- BoundField.cs
- EntityTypeEmitter.cs
- TraceSection.cs
- ProxyDataContractResolver.cs
- TextInfo.cs
- SafeCryptContextHandle.cs
- MatrixConverter.cs
- SmtpNtlmAuthenticationModule.cs
- GuidTagList.cs
- IndependentAnimationStorage.cs
- SspiNegotiationTokenAuthenticatorState.cs
- WorkflowOperationContext.cs
- XmlSchemaFacet.cs
- DownloadProgressEventArgs.cs
- XmlSchemaDatatype.cs
- Pair.cs
- PrintPreviewGraphics.cs
- ProfileService.cs
- UserPersonalizationStateInfo.cs
- PerfCounters.cs
- BookmarkResumptionRecord.cs
- CodeDirectiveCollection.cs
- RelationshipSet.cs
- SQlBooleanStorage.cs
- ListViewAutomationPeer.cs
- DependencyObjectValidator.cs
- PaintValueEventArgs.cs
- CompModSwitches.cs
- WindowsGraphics2.cs
- sqlpipe.cs
- ControlBuilder.cs
- HtmlInputHidden.cs
- BaseConfigurationRecord.cs
- UnsafePeerToPeerMethods.cs
- GB18030Encoding.cs
- TraceSection.cs
- CngProperty.cs
- UserControlDocumentDesigner.cs
- CodeObjectCreateExpression.cs
- SamlDelegatingWriter.cs
- UnsafeNativeMethods.cs
- Html32TextWriter.cs
- XamlPointCollectionSerializer.cs
- GridItemCollection.cs
- LicenseException.cs
- DashStyle.cs
- DataGridPageChangedEventArgs.cs
- EventArgs.cs
- SqlDataReader.cs
- StyleHelper.cs
- EnglishPluralizationService.cs
- HtmlEmptyTagControlBuilder.cs
- FixedTextSelectionProcessor.cs
- WindowsScroll.cs
- NumberFunctions.cs
- SmiEventStream.cs
- UnsupportedPolicyOptionsException.cs
- DiscoveryOperationContext.cs
- Camera.cs
- WebPart.cs
- InfoCardXmlSerializer.cs
- DesignerHelpers.cs
- DataGridViewUtilities.cs
- EventLogQuery.cs
- WebPartEditorOkVerb.cs
- SafeRightsManagementEnvironmentHandle.cs
- ReferenceEqualityComparer.cs
- XmlQueryCardinality.cs