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
- ResourceType.cs
- HtmlContainerControl.cs
- InheritablePropertyChangeInfo.cs
- SqlFacetAttribute.cs
- GuidConverter.cs
- RijndaelManagedTransform.cs
- AssemblyCollection.cs
- ParameterReplacerVisitor.cs
- AccessKeyManager.cs
- DataGridViewControlCollection.cs
- ContourSegment.cs
- SequenceFullException.cs
- PathFigureCollection.cs
- TypeConstant.cs
- TextTreeTextBlock.cs
- RTLAwareMessageBox.cs
- WebPartTransformerAttribute.cs
- PropertyValueChangedEvent.cs
- OneToOneMappingSerializer.cs
- XamlSerializerUtil.cs
- OdbcRowUpdatingEvent.cs
- HttpSessionStateWrapper.cs
- ScrollChrome.cs
- UnsafeNativeMethodsPenimc.cs
- DataSetViewSchema.cs
- oledbmetadatacolumnnames.cs
- SettingsSection.cs
- SessionParameter.cs
- CompiledIdentityConstraint.cs
- Fault.cs
- RootContext.cs
- ImageMapEventArgs.cs
- WebPartRestoreVerb.cs
- DbDataRecord.cs
- ConfigDefinitionUpdates.cs
- ColorAnimationUsingKeyFrames.cs
- MessageBox.cs
- SafeNativeMethods.cs
- GPPOINT.cs
- StateWorkerRequest.cs
- HashHelper.cs
- ProxyHwnd.cs
- ResourceDictionaryCollection.cs
- SplashScreen.cs
- Comparer.cs
- SymmetricCryptoHandle.cs
- CodeValidator.cs
- LinqDataSourceDisposeEventArgs.cs
- dtdvalidator.cs
- ManagementEventArgs.cs
- FilteredReadOnlyMetadataCollection.cs
- EntityDataSourceDesignerHelper.cs
- SortQuery.cs
- MessageVersion.cs
- NumericUpDownAcceleration.cs
- SqlNotificationEventArgs.cs
- CompressStream.cs
- IconBitmapDecoder.cs
- HierarchicalDataBoundControl.cs
- RuntimeConfig.cs
- FormParameter.cs
- IisTraceWebEventProvider.cs
- MemberDescriptor.cs
- KoreanLunisolarCalendar.cs
- CodePageEncoding.cs
- XmlSchemaDatatype.cs
- InputLanguageProfileNotifySink.cs
- GrammarBuilderWildcard.cs
- FontSizeConverter.cs
- ParallelEnumerableWrapper.cs
- ObjectAnimationBase.cs
- XPathChildIterator.cs
- StylusButtonEventArgs.cs
- TextBreakpoint.cs
- CookielessHelper.cs
- SurrogateSelector.cs
- MSG.cs
- TextEffect.cs
- MarkupExtensionSerializer.cs
- SafeFileHandle.cs
- MessageAction.cs
- Int64AnimationUsingKeyFrames.cs
- FormsAuthenticationTicket.cs
- GridToolTip.cs
- Form.cs
- SpellerInterop.cs
- SafeThemeHandle.cs
- BrowserCapabilitiesFactory.cs
- SpecialFolderEnumConverter.cs
- ElapsedEventArgs.cs
- ConfigDefinitionUpdates.cs
- ZipIOFileItemStream.cs
- XmlSchemaSimpleTypeUnion.cs
- DataReaderContainer.cs
- StoryFragments.cs
- ProfilePropertyMetadata.cs
- RequestResizeEvent.cs
- PageThemeCodeDomTreeGenerator.cs
- SmiConnection.cs
- MultiBindingExpression.cs