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
- MatrixTransform.cs
- WindowsListViewSubItem.cs
- BinaryUtilClasses.cs
- ResourceAssociationType.cs
- VerticalAlignConverter.cs
- FileDialogCustomPlace.cs
- KeyboardNavigation.cs
- DoubleConverter.cs
- AuthenticateEventArgs.cs
- ListParaClient.cs
- Attachment.cs
- Transaction.cs
- WorkflowApplicationAbortedEventArgs.cs
- PointValueSerializer.cs
- DesignerAttributeInfo.cs
- UnmanagedMarshal.cs
- XslCompiledTransform.cs
- Deserializer.cs
- HttpFormatExtensions.cs
- EntitySqlQueryBuilder.cs
- XmlIterators.cs
- Page.cs
- CodeTryCatchFinallyStatement.cs
- StylusPointDescription.cs
- TypeToken.cs
- SupportsEventValidationAttribute.cs
- RegexGroup.cs
- OperandQuery.cs
- SupportingTokenAuthenticatorSpecification.cs
- VisualTreeUtils.cs
- RijndaelManagedTransform.cs
- Calendar.cs
- DisableDpiAwarenessAttribute.cs
- EllipseGeometry.cs
- FactoryGenerator.cs
- NumericPagerField.cs
- PropertyValueUIItem.cs
- WeakKeyDictionary.cs
- PagesSection.cs
- XmlHierarchicalEnumerable.cs
- TextElement.cs
- PeerObject.cs
- HostingPreferredMapPath.cs
- ManagedWndProcTracker.cs
- PassportIdentity.cs
- QueryException.cs
- CodeSnippetTypeMember.cs
- StorageBasedPackageProperties.cs
- BitmapImage.cs
- WebPartUtil.cs
- Invariant.cs
- OdbcCommandBuilder.cs
- ForeignKeyFactory.cs
- GenerateHelper.cs
- UpdateTranslator.cs
- BrowserCapabilitiesCompiler.cs
- Help.cs
- NegotiateStream.cs
- TypefaceCollection.cs
- WorkflowServiceOperationListItem.cs
- XmlILConstructAnalyzer.cs
- documentsequencetextview.cs
- MultiBinding.cs
- DataGridViewTextBoxCell.cs
- XmlDomTextWriter.cs
- InputBinder.cs
- XmlBaseReader.cs
- SourceLineInfo.cs
- ListViewEditEventArgs.cs
- HandleRef.cs
- invalidudtexception.cs
- HatchBrush.cs
- XmlBinaryReader.cs
- SQLInt32.cs
- ButtonBaseAutomationPeer.cs
- WindowExtensionMethods.cs
- SortKey.cs
- Timer.cs
- Cursors.cs
- AppSecurityManager.cs
- base64Transforms.cs
- SerialPort.cs
- SystemColors.cs
- UriTemplateClientFormatter.cs
- DataGridViewUtilities.cs
- ColorAnimationUsingKeyFrames.cs
- EntityClientCacheEntry.cs
- NativeCppClassAttribute.cs
- TablePattern.cs
- CompressStream.cs
- DiscoveryMessageProperty.cs
- Size3DValueSerializer.cs
- ParseNumbers.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WebPartDeleteVerb.cs
- FontWeights.cs
- ButtonStandardAdapter.cs
- CodeAccessSecurityEngine.cs
- COAUTHINFO.cs
- TextFormatter.cs