Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- Point4DValueSerializer.cs
- SystemIPv4InterfaceProperties.cs
- XXXInfos.cs
- ScrollBarRenderer.cs
- RootProjectionNode.cs
- ZipIOExtraFieldZip64Element.cs
- MatrixUtil.cs
- ElasticEase.cs
- LocationSectionRecord.cs
- _NetworkingPerfCounters.cs
- EnumMemberAttribute.cs
- CriticalHandle.cs
- OutputScope.cs
- TypeGenericEnumerableViewSchema.cs
- XmlSchemaComplexContentRestriction.cs
- JavascriptXmlWriterWrapper.cs
- ChannelRequirements.cs
- ConfigXmlSignificantWhitespace.cs
- Walker.cs
- ChannelProtectionRequirements.cs
- XslVisitor.cs
- TabPage.cs
- WindowsIPAddress.cs
- CatalogZone.cs
- PrePostDescendentsWalker.cs
- XmlSchemaSimpleTypeUnion.cs
- UnmanagedMemoryStreamWrapper.cs
- HierarchicalDataSourceControl.cs
- ProbeMatchesMessage11.cs
- ClientRoleProvider.cs
- ToolStripDropDownButton.cs
- BinaryUtilClasses.cs
- IntSecurity.cs
- AuthenticationManager.cs
- SaveFileDialog.cs
- InputBinding.cs
- AttachedPropertyMethodSelector.cs
- DeleteIndexBinder.cs
- SafeHandles.cs
- FunctionImportMapping.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- _BufferOffsetSize.cs
- TimeSpanStorage.cs
- CroppedBitmap.cs
- CopyNamespacesAction.cs
- StylusPointCollection.cs
- PassportAuthentication.cs
- FixedSchema.cs
- DecimalAnimation.cs
- CriticalExceptions.cs
- AvTraceDetails.cs
- ChtmlTextWriter.cs
- CodeCommentStatementCollection.cs
- PartBasedPackageProperties.cs
- TabPanel.cs
- SingleObjectCollection.cs
- BookmarkScopeInfo.cs
- AttributeUsageAttribute.cs
- StructureChangedEventArgs.cs
- DataGridViewCellCollection.cs
- XpsSerializationManager.cs
- ObjectMemberMapping.cs
- StateMachine.cs
- CategoryGridEntry.cs
- ProjectionPlanCompiler.cs
- Package.cs
- _emptywebproxy.cs
- base64Transforms.cs
- HttpRawResponse.cs
- ToolStripMenuItem.cs
- FileLogRecordStream.cs
- CultureInfo.cs
- SmtpFailedRecipientException.cs
- ViewEvent.cs
- HtmlGenericControl.cs
- UnknownWrapper.cs
- ConfigurationLocationCollection.cs
- COM2TypeInfoProcessor.cs
- DynamicMethod.cs
- ClearTypeHintValidation.cs
- ContentPosition.cs
- _DomainName.cs
- MD5CryptoServiceProvider.cs
- ActivationArguments.cs
- DataGridBoolColumn.cs
- OutputCacheProfile.cs
- ViewStateModeByIdAttribute.cs
- XmlNodeReader.cs
- RetrieveVirtualItemEventArgs.cs
- PrePrepareMethodAttribute.cs
- ConfigurationStrings.cs
- StyleXamlTreeBuilder.cs
- MULTI_QI.cs
- HandlerFactoryCache.cs
- EmptyQuery.cs
- BinaryObjectInfo.cs
- FontInfo.cs
- AspCompat.cs
- Window.cs
- ProcessModelSection.cs