Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- QueryCursorEventArgs.cs
- RootProfilePropertySettingsCollection.cs
- Setter.cs
- SizeIndependentAnimationStorage.cs
- WebPartConnectionsCloseVerb.cs
- SqlCacheDependencyDatabaseCollection.cs
- HitTestFilterBehavior.cs
- MailDefinition.cs
- TableTextElementCollectionInternal.cs
- ChildChangedEventArgs.cs
- SingleStorage.cs
- TcpTransportElement.cs
- HMAC.cs
- SponsorHelper.cs
- StandardMenuStripVerb.cs
- DataServiceHost.cs
- PasswordTextNavigator.cs
- AdornerLayer.cs
- FontDifferentiator.cs
- __TransparentProxy.cs
- SQLCharsStorage.cs
- SelectorAutomationPeer.cs
- Types.cs
- DataTemplateSelector.cs
- FixedSOMLineRanges.cs
- ControlCollection.cs
- XPathPatternBuilder.cs
- basevalidator.cs
- MissingFieldException.cs
- OleDbConnectionFactory.cs
- XmlValueConverter.cs
- AddressAlreadyInUseException.cs
- SafeRightsManagementSessionHandle.cs
- SqlPersonalizationProvider.cs
- DeclarativeCatalogPart.cs
- UdpUtility.cs
- RealizationDrawingContextWalker.cs
- DataGridViewHitTestInfo.cs
- HttpListenerPrefixCollection.cs
- XmlSchemaExternal.cs
- DataColumnMappingCollection.cs
- oledbmetadatacollectionnames.cs
- StatusBarDrawItemEvent.cs
- ObjectDataSourceFilteringEventArgs.cs
- ModelChangedEventArgsImpl.cs
- IntSecurity.cs
- FormsAuthenticationTicket.cs
- ContextBase.cs
- SimpleTextLine.cs
- ACL.cs
- ResolveMatchesMessage11.cs
- InvokeSchedule.cs
- DataGridViewCellValidatingEventArgs.cs
- Control.cs
- AlgoModule.cs
- ForEachAction.cs
- HtmlDocument.cs
- FileRecordSequence.cs
- ResourceContainerWrapper.cs
- OptimisticConcurrencyException.cs
- NavigateEvent.cs
- DataGridToolTip.cs
- LocalizationCodeDomSerializer.cs
- DataViewManagerListItemTypeDescriptor.cs
- EncoderReplacementFallback.cs
- SiteIdentityPermission.cs
- ChildrenQuery.cs
- CommunicationObject.cs
- ComplusEndpointConfigContainer.cs
- TypedLocationWrapper.cs
- ZipArchive.cs
- HttpDictionary.cs
- HierarchicalDataSourceControl.cs
- ProfileGroupSettings.cs
- PerformanceCounterPermissionEntry.cs
- TransformerConfigurationWizardBase.cs
- VerificationAttribute.cs
- InvalidAsynchronousStateException.cs
- CTreeGenerator.cs
- DataGridViewAccessibleObject.cs
- AddInActivator.cs
- SchemaImporter.cs
- CorrelationManager.cs
- IISUnsafeMethods.cs
- TextSelection.cs
- IChannel.cs
- ByteStreamBufferedMessageData.cs
- AudienceUriMode.cs
- DataServiceExpressionVisitor.cs
- SqlTopReducer.cs
- ChannelServices.cs
- InputLanguageManager.cs
- OperationContractGenerationContext.cs
- SmiRequestExecutor.cs
- RenamedEventArgs.cs
- OraclePermission.cs
- Canvas.cs
- CorrelationManager.cs
- WebPartEditorApplyVerb.cs
- StringUtil.cs