Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CodeDOMUtility.cs
- CachedBitmap.cs
- WindowsAuthenticationEventArgs.cs
- DataGridItemAutomationPeer.cs
- cookie.cs
- UnsafeNativeMethods.cs
- TrackingMemoryStreamFactory.cs
- PromptBuilder.cs
- ModifiableIteratorCollection.cs
- Substitution.cs
- arclist.cs
- ping.cs
- GroupBox.cs
- HttpHeaderCollection.cs
- ObjectView.cs
- AdornedElementPlaceholder.cs
- precedingsibling.cs
- BaseInfoTable.cs
- EndpointInfoCollection.cs
- ManifestSignatureInformation.cs
- TreeNodeConverter.cs
- TreeNode.cs
- TabPage.cs
- Encoder.cs
- FlowLayoutSettings.cs
- WindowInteractionStateTracker.cs
- DoubleAverageAggregationOperator.cs
- RotationValidation.cs
- DocumentViewerHelper.cs
- UIHelper.cs
- ProxyGenerator.cs
- AutomationPropertyInfo.cs
- XmlSiteMapProvider.cs
- InsufficientMemoryException.cs
- BlurBitmapEffect.cs
- SequenceQuery.cs
- LookupNode.cs
- StrokeIntersection.cs
- InvalidDataException.cs
- ZoneLinkButton.cs
- GeometryConverter.cs
- GridEntryCollection.cs
- X509ClientCertificateAuthenticationElement.cs
- ValidatingReaderNodeData.cs
- ConnectionPointCookie.cs
- SendMailErrorEventArgs.cs
- MarkupCompiler.cs
- StylusDownEventArgs.cs
- ModelProperty.cs
- TypeNameHelper.cs
- Common.cs
- SqlUserDefinedAggregateAttribute.cs
- Serialization.cs
- PaintValueEventArgs.cs
- AnimationClock.cs
- InstallerTypeAttribute.cs
- XmlTextAttribute.cs
- SiteMembershipCondition.cs
- FlowchartDesigner.Helpers.cs
- SafeLocalAllocation.cs
- SecurityException.cs
- Set.cs
- XmlBoundElement.cs
- CookielessHelper.cs
- SqlGenerator.cs
- SoapCodeExporter.cs
- ItemCheckEvent.cs
- DefaultValueConverter.cs
- PathGeometry.cs
- ServerReliableChannelBinder.cs
- CompModSwitches.cs
- QuaternionRotation3D.cs
- HuffmanTree.cs
- CloseSequence.cs
- QilList.cs
- ToolStripDropTargetManager.cs
- XmlCharCheckingWriter.cs
- DefaultTraceListener.cs
- InlineObject.cs
- ContextBase.cs
- SupportingTokenListenerFactory.cs
- _NtlmClient.cs
- StorageBasedPackageProperties.cs
- ListViewTableCell.cs
- TemplatedEditableDesignerRegion.cs
- TextElementEditingBehaviorAttribute.cs
- HttpCookie.cs
- TaiwanLunisolarCalendar.cs
- KnownBoxes.cs
- NameValueCache.cs
- KeyGestureConverter.cs
- BinaryMessageEncoder.cs
- Misc.cs
- FileInfo.cs
- TrustLevelCollection.cs
- ReferencedType.cs
- GenericRootAutomationPeer.cs
- Activity.cs
- EnumBuilder.cs
- CompilationUtil.cs