Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- PointConverter.cs
- TextHintingModeValidation.cs
- FieldNameLookup.cs
- CopyNodeSetAction.cs
- PageSetupDialog.cs
- KnowledgeBase.cs
- OpCodes.cs
- XappLauncher.cs
- XmlAutoDetectWriter.cs
- ImageBrush.cs
- WebPartsPersonalization.cs
- ActiveXHelper.cs
- ForwardPositionQuery.cs
- SmtpClient.cs
- MenuEventArgs.cs
- WMICapabilities.cs
- ReferencedAssembly.cs
- DateTimeConverter.cs
- EntityDataSourceEntitySetNameItem.cs
- PropertyMapper.cs
- DrawTreeNodeEventArgs.cs
- EntityDataSourceQueryBuilder.cs
- RequiredFieldValidator.cs
- StreamUpdate.cs
- FileSystemInfo.cs
- _NestedMultipleAsyncResult.cs
- ClientUrlResolverWrapper.cs
- DbConnectionPoolGroupProviderInfo.cs
- UrlPath.cs
- EntityConnectionStringBuilder.cs
- BamlLocalizabilityResolver.cs
- InfoCardAsymmetricCrypto.cs
- TranslateTransform.cs
- SpecularMaterial.cs
- RichTextBox.cs
- SvcMapFile.cs
- XsltSettings.cs
- SocketManager.cs
- TemplateXamlParser.cs
- WhereQueryOperator.cs
- InputScope.cs
- CheckBoxAutomationPeer.cs
- Classification.cs
- MultiPartWriter.cs
- TrackBarRenderer.cs
- BindingManagerDataErrorEventArgs.cs
- JsonQNameDataContract.cs
- ApplicationHost.cs
- EmptyQuery.cs
- DataMemberAttribute.cs
- HandlerFactoryWrapper.cs
- DocumentGridPage.cs
- EntityContainerEntitySet.cs
- DrawingBrush.cs
- CharEntityEncoderFallback.cs
- LogAppendAsyncResult.cs
- DesignOnlyAttribute.cs
- FontUnit.cs
- WebHttpEndpoint.cs
- HtmlInputRadioButton.cs
- ConfigsHelper.cs
- FormViewDeleteEventArgs.cs
- MemoryResponseElement.cs
- ToolStripPanelRow.cs
- FixedSOMSemanticBox.cs
- querybuilder.cs
- ScriptReferenceEventArgs.cs
- HtmlShim.cs
- ReadWriteObjectLock.cs
- DiscreteKeyFrames.cs
- NumberFormatInfo.cs
- TypeDescriptionProviderAttribute.cs
- SpAudioStreamWrapper.cs
- XPathNodeHelper.cs
- BackgroundWorker.cs
- XmlSchemaSimpleTypeRestriction.cs
- ConditionValidator.cs
- HideDisabledControlAdapter.cs
- XmlSchemaDocumentation.cs
- DoubleLink.cs
- Parser.cs
- HwndAppCommandInputProvider.cs
- HotCommands.cs
- TraceUtility.cs
- StateMachineAction.cs
- MsmqHostedTransportConfiguration.cs
- Floater.cs
- PriorityBindingExpression.cs
- TypeListConverter.cs
- RegexNode.cs
- InvalidFilterCriteriaException.cs
- Menu.cs
- HostedImpersonationContext.cs
- httpapplicationstate.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- PeerMaintainer.cs
- StrongNameHelpers.cs
- ServiceChannelManager.cs
- StrokeCollectionDefaultValueFactory.cs
- CachedTypeface.cs