Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / BrushMappingModeValidation.cs / 1 / BrushMappingModeValidation.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 IsBrushMappingModeValid(object valueObject)
{
BrushMappingMode value = (BrushMappingMode) valueObject;
return (value == BrushMappingMode.Absolute) ||
(value == BrushMappingMode.RelativeToBoundingBox);
}
}
}
// 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 IsBrushMappingModeValid(object valueObject)
{
BrushMappingMode value = (BrushMappingMode) valueObject;
return (value == BrushMappingMode.Absolute) ||
(value == BrushMappingMode.RelativeToBoundingBox);
}
}
}
// 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
- TraceUtility.cs
- SHA1CryptoServiceProvider.cs
- MaskedTextProvider.cs
- HttpResponseMessageProperty.cs
- IpcPort.cs
- EncryptedXml.cs
- ContentType.cs
- _CacheStreams.cs
- Timer.cs
- ConnectionConsumerAttribute.cs
- StickyNoteHelper.cs
- Blend.cs
- AmbientProperties.cs
- HtmlControl.cs
- AutoGeneratedFieldProperties.cs
- KeyTimeConverter.cs
- ModifierKeysConverter.cs
- LeafCellTreeNode.cs
- ParallelTimeline.cs
- CaseInsensitiveOrdinalStringComparer.cs
- FileIOPermission.cs
- DataObjectAttribute.cs
- DiagnosticsConfiguration.cs
- RectAnimationUsingKeyFrames.cs
- BufferedStream2.cs
- ServiceModelEnumValidator.cs
- XmlSchemaSimpleTypeRestriction.cs
- StrokeNodeOperations2.cs
- Typography.cs
- NameObjectCollectionBase.cs
- ParserHooks.cs
- BitmapFrame.cs
- SapiRecognizer.cs
- ReadOnlyCollectionBase.cs
- IdentifierService.cs
- Encoder.cs
- Rfc4050KeyFormatter.cs
- StringToken.cs
- GridProviderWrapper.cs
- DataContext.cs
- ConnectionManagementSection.cs
- Operand.cs
- CheckBox.cs
- XmlCharType.cs
- ListenerBinder.cs
- Composition.cs
- NativeMethods.cs
- COM2PropertyPageUITypeConverter.cs
- UpdatePanel.cs
- SafeNativeMethodsMilCoreApi.cs
- Normalization.cs
- CreateUserWizard.cs
- IPEndPoint.cs
- XamlReaderHelper.cs
- SystemIPInterfaceStatistics.cs
- HttpCacheParams.cs
- TypeDependencyAttribute.cs
- ReadOnlyDictionary.cs
- ArgIterator.cs
- EventSinkActivity.cs
- SqlFileStream.cs
- EntityClientCacheKey.cs
- ReachPageContentCollectionSerializer.cs
- BatchStream.cs
- FontCollection.cs
- StorageEndPropertyMapping.cs
- METAHEADER.cs
- EncryptedType.cs
- EncryptedPackage.cs
- ConditionBrowserDialog.cs
- CompilerErrorCollection.cs
- JsonEncodingStreamWrapper.cs
- WindowsGraphicsCacheManager.cs
- OleDbConnectionFactory.cs
- KnownColorTable.cs
- SharedPersonalizationStateInfo.cs
- RepeaterCommandEventArgs.cs
- HashLookup.cs
- MetadataArtifactLoaderCompositeResource.cs
- TickBar.cs
- While.cs
- AttributedMetaModel.cs
- SortedDictionary.cs
- SafeArrayRankMismatchException.cs
- Mappings.cs
- SafeFileMappingHandle.cs
- BackStopAuthenticationModule.cs
- codemethodreferenceexpression.cs
- EntityCommandExecutionException.cs
- TableColumnCollectionInternal.cs
- Error.cs
- DataView.cs
- GroupBox.cs
- HttpMethodAttribute.cs
- WaitForChangedResult.cs
- XmlBoundElement.cs
- LiteralLink.cs
- CopyNodeSetAction.cs
- IntegrationExceptionEventArgs.cs
- OutOfMemoryException.cs