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
- DataServiceRequestArgs.cs
- BCLDebug.cs
- CounterSample.cs
- DefaultEventAttribute.cs
- DetailsViewActionList.cs
- DrawingGroupDrawingContext.cs
- ExpressionParser.cs
- FormViewUpdateEventArgs.cs
- XmlILTrace.cs
- ConstraintConverter.cs
- RawStylusActions.cs
- PasswordPropertyTextAttribute.cs
- SslStream.cs
- EncodingInfo.cs
- ViewRendering.cs
- GradientBrush.cs
- ProfileSettings.cs
- DecoderBestFitFallback.cs
- OdbcDataReader.cs
- OutputCacheProfile.cs
- FormsAuthenticationConfiguration.cs
- StringUtil.cs
- SafeArrayRankMismatchException.cs
- CaseInsensitiveOrdinalStringComparer.cs
- AuthorizationSection.cs
- ActivityMarkupSerializer.cs
- DataSourceDesigner.cs
- SQLBinary.cs
- InternalConfigRoot.cs
- CodeSnippetCompileUnit.cs
- CustomAttributeBuilder.cs
- AuthenticatingEventArgs.cs
- Attributes.cs
- MetafileHeaderWmf.cs
- RetrieveVirtualItemEventArgs.cs
- TextParagraph.cs
- AsymmetricKeyExchangeDeformatter.cs
- Message.cs
- SecureUICommand.cs
- Emitter.cs
- TcpChannelHelper.cs
- FunctionOverloadResolver.cs
- OracleColumn.cs
- ToolStripArrowRenderEventArgs.cs
- activationcontext.cs
- LostFocusEventManager.cs
- MobileTextWriter.cs
- InstalledFontCollection.cs
- ExternalFile.cs
- TextEffect.cs
- DataGridItem.cs
- GraphicsState.cs
- XmlDataContract.cs
- ListViewDeleteEventArgs.cs
- OlePropertyStructs.cs
- ArrayConverter.cs
- QueryStringParameter.cs
- PathFigureCollection.cs
- InheritedPropertyChangedEventArgs.cs
- InkCanvasSelection.cs
- Pair.cs
- CodeExporter.cs
- HtmlInputRadioButton.cs
- Point3DValueSerializer.cs
- XsltOutput.cs
- Attributes.cs
- UpdatePanelTriggerCollection.cs
- XmlBinaryWriterSession.cs
- ApplicationFileCodeDomTreeGenerator.cs
- PartialCachingControl.cs
- MimeWriter.cs
- RegexFCD.cs
- TemplateBindingExpressionConverter.cs
- SingleObjectCollection.cs
- dsa.cs
- KeySplineConverter.cs
- AdPostCacheSubstitution.cs
- PersistenceProviderDirectory.cs
- DBSqlParserColumn.cs
- MimeObjectFactory.cs
- HostProtectionException.cs
- loginstatus.cs
- CodeTypeMemberCollection.cs
- PackWebRequestFactory.cs
- DictionaryBase.cs
- RequestTimeoutManager.cs
- SqlUtils.cs
- ButtonBase.cs
- DataPointer.cs
- RegexCharClass.cs
- _emptywebproxy.cs
- ResourceExpressionBuilder.cs
- DataObject.cs
- ImageDesigner.cs
- SendAgentStatusRequest.cs
- ScriptRef.cs
- MenuItemCollection.cs
- GridToolTip.cs
- SiteMapNode.cs
- DeclarativeCatalogPartDesigner.cs