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 / 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
- Dictionary.cs
- ArrangedElement.cs
- ListViewItemMouseHoverEvent.cs
- StaticResourceExtension.cs
- SecureStringHasher.cs
- XMLSchema.cs
- QuotedStringFormatReader.cs
- ArrayWithOffset.cs
- SiteMapDataSourceView.cs
- StreamInfo.cs
- ToolStripArrowRenderEventArgs.cs
- GridViewColumn.cs
- GenericArgumentsUpdater.cs
- NotificationContext.cs
- XmlSequenceWriter.cs
- JoinTreeNode.cs
- SessionIDManager.cs
- XMLUtil.cs
- HwndHost.cs
- Inflater.cs
- ClientConvert.cs
- AttributeProviderAttribute.cs
- MessageFilterException.cs
- XmlNodeReader.cs
- AppDomainFactory.cs
- VersionPair.cs
- FloaterBaseParagraph.cs
- SrgsText.cs
- RuntimeTransactionHandle.cs
- XmlRawWriter.cs
- ListGeneralPage.cs
- ReflectionUtil.cs
- DataColumnMappingCollection.cs
- Calendar.cs
- DataGridViewCellStyle.cs
- ValueOfAction.cs
- AsyncOperationContext.cs
- Renderer.cs
- smtppermission.cs
- ForceCopyBuildProvider.cs
- ListViewCancelEventArgs.cs
- ComAdminWrapper.cs
- SerializerProvider.cs
- WebPartEditVerb.cs
- DataGridCellItemAutomationPeer.cs
- HtmlLink.cs
- MenuItemStyleCollectionEditor.cs
- CodeDomSerializerBase.cs
- MemberHolder.cs
- GridViewItemAutomationPeer.cs
- UnmanagedMemoryStream.cs
- DescendentsWalker.cs
- BaseResourcesBuildProvider.cs
- XmlnsDefinitionAttribute.cs
- DesignerTransactionCloseEvent.cs
- AuthenticationSection.cs
- SymmetricKeyWrap.cs
- ProfilePropertyNameValidator.cs
- BinHexEncoding.cs
- EditorPartChrome.cs
- InputEventArgs.cs
- RayMeshGeometry3DHitTestResult.cs
- ImageSource.cs
- PackUriHelper.cs
- WorkflowMarkupSerializationProvider.cs
- localization.cs
- RegexMatchCollection.cs
- DataGridViewComboBoxEditingControl.cs
- PersistStreamTypeWrapper.cs
- Int16Storage.cs
- DeflateStream.cs
- ToolZone.cs
- MessageBox.cs
- UInt16.cs
- XmlDocumentType.cs
- NamespaceQuery.cs
- InternalConfirm.cs
- Color.cs
- FontConverter.cs
- EntityContainer.cs
- DocumentOutline.cs
- ApplicationSecurityManager.cs
- LinqDataSourceHelper.cs
- WebPartDisplayModeCancelEventArgs.cs
- X509ThumbprintKeyIdentifierClause.cs
- ErrorFormatter.cs
- ListItem.cs
- SafeRegistryHandle.cs
- PolyBezierSegment.cs
- ProfilePropertySettingsCollection.cs
- ImmutableCollection.cs
- ContextProperty.cs
- FrameSecurityDescriptor.cs
- RelationshipType.cs
- DecoratedNameAttribute.cs
- ScaleTransform.cs
- CompositionAdorner.cs
- ContractReference.cs
- ExternalException.cs
- WebPageTraceListener.cs