Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / RotationValidation.cs / 1 / RotationValidation.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.Imaging
{
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 IsRotationValid(object valueObject)
{
Rotation value = (Rotation) valueObject;
return (value == Rotation.Rotate0) ||
(value == Rotation.Rotate90) ||
(value == Rotation.Rotate180) ||
(value == Rotation.Rotate270);
}
}
}
// 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.Imaging
{
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 IsRotationValid(object valueObject)
{
Rotation value = (Rotation) valueObject;
return (value == Rotation.Rotate0) ||
(value == Rotation.Rotate90) ||
(value == Rotation.Rotate180) ||
(value == Rotation.Rotate270);
}
}
}
// 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
- ImageSourceConverter.cs
- CryptoHelper.cs
- WebPartMenuStyle.cs
- AssemblyContextControlItem.cs
- State.cs
- EnvironmentPermission.cs
- WindowsRegion.cs
- ProtectedConfiguration.cs
- QueryStringParameter.cs
- CommandField.cs
- BaseUriHelper.cs
- XmlSecureResolver.cs
- TrustLevel.cs
- SimpleTextLine.cs
- VariantWrapper.cs
- Invariant.cs
- Table.cs
- NativeMethods.cs
- ToolStripContentPanel.cs
- DES.cs
- AccessText.cs
- TCPListener.cs
- NestPullup.cs
- TreeNodeStyleCollection.cs
- DistinctQueryOperator.cs
- DynamicDocumentPaginator.cs
- EntityDataSourceUtil.cs
- Main.cs
- Constant.cs
- XamlFigureLengthSerializer.cs
- Types.cs
- ClientSponsor.cs
- WebServiceAttribute.cs
- AnnotationResourceChangedEventArgs.cs
- FontSourceCollection.cs
- Int16KeyFrameCollection.cs
- StandardToolWindows.cs
- TypeConverterHelper.cs
- coordinator.cs
- SessionEndingCancelEventArgs.cs
- ComponentCache.cs
- InputLanguageCollection.cs
- TextEditorDragDrop.cs
- XsltConvert.cs
- WebBrowserNavigatingEventHandler.cs
- StyleTypedPropertyAttribute.cs
- XmlSequenceWriter.cs
- SoapEnumAttribute.cs
- SerializationUtility.cs
- ComponentEditorForm.cs
- Bezier.cs
- LinqExpressionNormalizer.cs
- GridViewRowPresenterBase.cs
- ToolboxDataAttribute.cs
- Delegate.cs
- SoapParser.cs
- TextEditorSelection.cs
- Glyph.cs
- SafeNativeMethods.cs
- AuthorizationSection.cs
- DiffuseMaterial.cs
- SingleSelectRootGridEntry.cs
- AdornedElementPlaceholder.cs
- DrawingVisual.cs
- AuthenticationModulesSection.cs
- ScrollBarAutomationPeer.cs
- TagPrefixInfo.cs
- FormViewPagerRow.cs
- SyndicationItemFormatter.cs
- ReadOnlyHierarchicalDataSource.cs
- PropertyMapper.cs
- Parameter.cs
- TextTabProperties.cs
- WindowsBrush.cs
- MouseEventArgs.cs
- MarshalByValueComponent.cs
- QuaternionKeyFrameCollection.cs
- StrokeCollection2.cs
- Geometry3D.cs
- SynchronizationLockException.cs
- precedingquery.cs
- BinaryWriter.cs
- TimeZoneInfo.cs
- DataGridViewCellStyleBuilderDialog.cs
- ChtmlTextWriter.cs
- Translator.cs
- BasePropertyDescriptor.cs
- Highlights.cs
- XmlWellformedWriter.cs
- DataTableReaderListener.cs
- EnumCodeDomSerializer.cs
- BuildDependencySet.cs
- ToolStripItemTextRenderEventArgs.cs
- Version.cs
- ComPlusContractBehavior.cs
- UpdatableWrapper.cs
- HttpVersion.cs
- FilteredAttributeCollection.cs
- ReadOnlyCollection.cs
- DataGridViewCellConverter.cs