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 / TileModeValidation.cs / 1 / TileModeValidation.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 IsTileModeValid(object valueObject)
{
TileMode value = (TileMode) valueObject;
return (value == TileMode.None) ||
(value == TileMode.Tile) ||
(value == TileMode.FlipX) ||
(value == TileMode.FlipY) ||
(value == TileMode.FlipXY);
}
}
}
// 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 IsTileModeValid(object valueObject)
{
TileMode value = (TileMode) valueObject;
return (value == TileMode.None) ||
(value == TileMode.Tile) ||
(value == TileMode.FlipX) ||
(value == TileMode.FlipY) ||
(value == TileMode.FlipXY);
}
}
}
// 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
- Formatter.cs
- KeyProperty.cs
- TabControl.cs
- XmlSchemaSimpleContent.cs
- TimeSpanParse.cs
- EntityConnection.cs
- AlgoModule.cs
- BinHexDecoder.cs
- BufferedResponseStream.cs
- WebPartsPersonalization.cs
- UIElementParagraph.cs
- FigureParaClient.cs
- CompositeCollection.cs
- StringKeyFrameCollection.cs
- MetadataPropertyAttribute.cs
- HttpProfileBase.cs
- BindingParameterCollection.cs
- StaticSiteMapProvider.cs
- ClockController.cs
- MarshalDirectiveException.cs
- CryptoConfig.cs
- datacache.cs
- CustomAttributeSerializer.cs
- Positioning.cs
- StringStorage.cs
- GenericsInstances.cs
- ProcessModelSection.cs
- WizardStepBase.cs
- CngProvider.cs
- CanExecuteRoutedEventArgs.cs
- Canvas.cs
- ComponentChangingEvent.cs
- WebPartVerbsEventArgs.cs
- StorageModelBuildProvider.cs
- TransformDescriptor.cs
- XmlSchemaValidationException.cs
- CompositeCollectionView.cs
- AssemblyAssociatedContentFileAttribute.cs
- SlotInfo.cs
- RegistrySecurity.cs
- ChannelEndpointElementCollection.cs
- TransactionCache.cs
- PropertyToken.cs
- SplitterCancelEvent.cs
- GenericTypeParameterBuilder.cs
- WorkflowTraceTransfer.cs
- ModelItem.cs
- TimeEnumHelper.cs
- PackageDigitalSignature.cs
- Pen.cs
- EventToken.cs
- Stroke2.cs
- SystemInfo.cs
- FileUtil.cs
- SQlBooleanStorage.cs
- ThemeDirectoryCompiler.cs
- SoapReflectionImporter.cs
- ScriptModule.cs
- XsdBuilder.cs
- OleDbDataReader.cs
- ElementsClipboardData.cs
- SimpleType.cs
- DataGridViewLinkCell.cs
- Rect.cs
- ContractBase.cs
- FullTrustAssembly.cs
- TreeView.cs
- SqlCachedBuffer.cs
- InfoCardUIAgent.cs
- StylusPointDescription.cs
- WebServiceMethodData.cs
- ExpandCollapseProviderWrapper.cs
- LifetimeServices.cs
- EllipseGeometry.cs
- selecteditemcollection.cs
- EndpointDiscoveryElement.cs
- StrokeNodeData.cs
- Grant.cs
- ZipIOFileItemStream.cs
- BitmapEffectOutputConnector.cs
- IApplicationTrustManager.cs
- ComponentGuaranteesAttribute.cs
- Internal.cs
- FieldDescriptor.cs
- DrawingImage.cs
- FreezableDefaultValueFactory.cs
- RefreshPropertiesAttribute.cs
- ResourcePool.cs
- GraphicsPathIterator.cs
- CapiHashAlgorithm.cs
- Msec.cs
- DiagnosticEventProvider.cs
- ChineseLunisolarCalendar.cs
- EpmContentDeSerializer.cs
- FaultPropagationRecord.cs
- ImageListStreamer.cs
- ListViewHitTestInfo.cs
- DbConnectionPoolCounters.cs
- TraceShell.cs
- NamespaceInfo.cs