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
- OdbcStatementHandle.cs
- _CommandStream.cs
- XPathPatternParser.cs
- InstanceKeyView.cs
- TPLETWProvider.cs
- StreamingContext.cs
- XPathArrayIterator.cs
- WebBrowserNavigatingEventHandler.cs
- XmlStreamStore.cs
- TextDocumentView.cs
- StringComparer.cs
- ListViewTableRow.cs
- HMAC.cs
- DialogResultConverter.cs
- SafeEventHandle.cs
- ColorAnimationBase.cs
- PartialList.cs
- ConfigXmlText.cs
- DebugInfoGenerator.cs
- SystemResourceKey.cs
- CompositeActivityTypeDescriptorProvider.cs
- TypeSemantics.cs
- DesignerCatalogPartChrome.cs
- SafeIUnknown.cs
- ThreadStartException.cs
- StaticFileHandler.cs
- SafeLibraryHandle.cs
- GZipUtils.cs
- PanelStyle.cs
- SizeAnimationUsingKeyFrames.cs
- NativeMethods.cs
- JapaneseLunisolarCalendar.cs
- ObjectKeyFrameCollection.cs
- SmiGettersStream.cs
- LeaseManager.cs
- RuleSettingsCollection.cs
- ArgIterator.cs
- XPathScanner.cs
- SizeConverter.cs
- OdbcFactory.cs
- ServicePointManager.cs
- AsyncPostBackTrigger.cs
- Timer.cs
- ComboBoxItem.cs
- CompensationTokenData.cs
- Relationship.cs
- Binding.cs
- IDReferencePropertyAttribute.cs
- baseshape.cs
- InvalidDataException.cs
- NeutralResourcesLanguageAttribute.cs
- CompositionAdorner.cs
- QueryMatcher.cs
- SafeEventLogWriteHandle.cs
- ListItemViewAttribute.cs
- QueryOutputWriterV1.cs
- TokenCreationParameter.cs
- RowType.cs
- PropertyDescriptorComparer.cs
- ObjectNotFoundException.cs
- HotSpot.cs
- TrustLevelCollection.cs
- Constant.cs
- LocalBuilder.cs
- AddInContractAttribute.cs
- ZipIOExtraFieldZip64Element.cs
- Literal.cs
- XmlSerializerVersionAttribute.cs
- CodeSubDirectoriesCollection.cs
- CompositeScriptReference.cs
- MulticastOption.cs
- _NetworkingPerfCounters.cs
- IsolatedStorage.cs
- ResourceKey.cs
- DBConnectionString.cs
- DataViewSettingCollection.cs
- Run.cs
- AutomationElementIdentifiers.cs
- MexNamedPipeBindingElement.cs
- CollectionViewGroup.cs
- DiscoveryClientDocuments.cs
- DetailsViewUpdateEventArgs.cs
- GetPageCompletedEventArgs.cs
- PropertyEntry.cs
- _TLSstream.cs
- SchemaCollectionPreprocessor.cs
- OrthographicCamera.cs
- assertwrapper.cs
- JoinTreeNode.cs
- EntityDataReader.cs
- XmlDeclaration.cs
- WorkflowMarkupSerializer.cs
- AtomContentProperty.cs
- CounterNameConverter.cs
- _RequestCacheProtocol.cs
- ClientBuildManagerCallback.cs
- DataGridColumn.cs
- DependencyObjectType.cs
- DataGridViewCellStyleEditor.cs
- DetailsViewRowCollection.cs