Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / BrushMappingModeValidation.cs / 1305600 / 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
- ClientCultureInfo.cs
- UndoManager.cs
- AnnouncementEndpoint.cs
- ComPlusTypeLoader.cs
- Expression.cs
- SpAudioStreamWrapper.cs
- ProtocolsConfigurationHandler.cs
- IncrementalReadDecoders.cs
- ScrollEventArgs.cs
- WmpBitmapEncoder.cs
- ManipulationPivot.cs
- InkCanvasSelection.cs
- ToolStripItem.cs
- ToolStripKeyboardHandlingService.cs
- RoutedEventValueSerializer.cs
- DataGridRow.cs
- MulticastIPAddressInformationCollection.cs
- ClientRuntimeConfig.cs
- IFlowDocumentViewer.cs
- ClientScriptManager.cs
- GridItemPatternIdentifiers.cs
- CompilerErrorCollection.cs
- ToolStripSeparator.cs
- SlotInfo.cs
- CodeNamespace.cs
- Point3DValueSerializer.cs
- SecurityResources.cs
- FacetDescriptionElement.cs
- OrderPreservingMergeHelper.cs
- smtpconnection.cs
- SizeValueSerializer.cs
- Error.cs
- RequestStatusBarUpdateEventArgs.cs
- Vector3DCollection.cs
- PenContexts.cs
- TokenBasedSet.cs
- AstTree.cs
- MessageVersion.cs
- AsymmetricKeyExchangeFormatter.cs
- XmlSchemaSimpleTypeList.cs
- RepeaterItemCollection.cs
- SchemaNotation.cs
- CorrelationTokenTypeConvertor.cs
- FontUnitConverter.cs
- StylusPlugInCollection.cs
- DesignerLoader.cs
- VerticalAlignConverter.cs
- OuterGlowBitmapEffect.cs
- SecureStringHasher.cs
- EncryptedData.cs
- XmlMembersMapping.cs
- TraceContextEventArgs.cs
- MailSettingsSection.cs
- MultipartContentParser.cs
- RawStylusInput.cs
- TrustManagerMoreInformation.cs
- PermissionSetTriple.cs
- DynamicPropertyHolder.cs
- SecurityDocument.cs
- ProcessDesigner.cs
- Registry.cs
- XDeferredAxisSource.cs
- latinshape.cs
- Timer.cs
- SqlLiftIndependentRowExpressions.cs
- EntityDataSourceChangedEventArgs.cs
- DataGridViewImageCell.cs
- RC2.cs
- Gdiplus.cs
- ValidationHelper.cs
- HTMLTagNameToTypeMapper.cs
- DataSetMappper.cs
- SafeNativeMethods.cs
- TextTreeText.cs
- CompositeControl.cs
- NavigationProperty.cs
- SettingsBase.cs
- DbDataSourceEnumerator.cs
- FrameworkRichTextComposition.cs
- Application.cs
- XmlChildNodes.cs
- ObjectView.cs
- WebPartZoneBase.cs
- MsmqChannelFactory.cs
- StylusPointProperty.cs
- ConfigurationValues.cs
- IndependentlyAnimatedPropertyMetadata.cs
- MenuItemBinding.cs
- XmlObjectSerializer.cs
- ErrorTolerantObjectWriter.cs
- XmlValidatingReader.cs
- TagElement.cs
- AddInAdapter.cs
- RevocationPoint.cs
- EntityViewContainer.cs
- MessageSmuggler.cs
- WebPartCollection.cs
- BindingUtils.cs
- URL.cs
- GridProviderWrapper.cs