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
- XmlKeywords.cs
- RoutedEvent.cs
- ImageCodecInfo.cs
- InfoCardRSACryptoProvider.cs
- XamlToRtfWriter.cs
- Visitor.cs
- TabletDeviceInfo.cs
- RootBuilder.cs
- RelationshipDetailsCollection.cs
- XmlText.cs
- PersonalizationDictionary.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- ApplicationCommands.cs
- IntranetCredentialPolicy.cs
- HttpSysSettings.cs
- ContentDefinition.cs
- TouchesOverProperty.cs
- VisualBrush.cs
- PerformanceCountersElement.cs
- WorkflowTransactionService.cs
- TextDecorationCollection.cs
- ArraySet.cs
- HideDisabledControlAdapter.cs
- ZipFileInfo.cs
- ImageMap.cs
- DesignerResources.cs
- PageHandlerFactory.cs
- AdapterUtil.cs
- PeerInvitationResponse.cs
- ImageCodecInfoPrivate.cs
- BaseAutoFormat.cs
- SafeBitVector32.cs
- ContainerParaClient.cs
- DataSourceDescriptorCollection.cs
- SoapSchemaImporter.cs
- CallSiteOps.cs
- QuaternionIndependentAnimationStorage.cs
- RtfNavigator.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- ScriptManager.cs
- FormsAuthenticationEventArgs.cs
- TextTrailingWordEllipsis.cs
- BoundColumn.cs
- EmptyStringExpandableObjectConverter.cs
- FixedDocumentSequencePaginator.cs
- DictionaryTraceRecord.cs
- VirtualizedContainerService.cs
- XmlnsDictionary.cs
- ByteKeyFrameCollection.cs
- MessageDecoder.cs
- WebServiceData.cs
- EarlyBoundInfo.cs
- SafeCryptoHandles.cs
- XmlILOptimizerVisitor.cs
- DbConnectionFactory.cs
- ResourceProviderFactory.cs
- XslException.cs
- RuleAction.cs
- GradientStop.cs
- RouteValueExpressionBuilder.cs
- OrderByQueryOptionExpression.cs
- SBCSCodePageEncoding.cs
- WebPartDisplayModeCancelEventArgs.cs
- ObjectViewListener.cs
- Rectangle.cs
- TableParagraph.cs
- TraceData.cs
- DriveInfo.cs
- NamespaceDecl.cs
- Serialization.cs
- ToolStripItemTextRenderEventArgs.cs
- HierarchicalDataSourceControl.cs
- ObjectManager.cs
- TargetInvocationException.cs
- StylusPointPropertyInfo.cs
- WebPartEditVerb.cs
- NativeMethods.cs
- EntityKey.cs
- XmlSchemaObject.cs
- OdbcReferenceCollection.cs
- HttpChannelListener.cs
- TextBoxAutomationPeer.cs
- MaskedTextBoxTextEditor.cs
- XPathScanner.cs
- SAPIEngineTypes.cs
- ImageSource.cs
- PolicyException.cs
- RMEnrollmentPage2.cs
- MetadataPropertyCollection.cs
- DeflateStreamAsyncResult.cs
- CompoundFileStorageReference.cs
- HMAC.cs
- CodeIdentifier.cs
- ConfigXmlReader.cs
- RegistryKey.cs
- SafeBitVector32.cs
- AnnotationComponentManager.cs
- CompiledQueryCacheKey.cs
- ImmComposition.cs
- ProxyWebPartConnectionCollection.cs