Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Shared / MS / Internal / Generated / ColorInterpolationModeValidation.cs / 1 / ColorInterpolationModeValidation.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 IsColorInterpolationModeValid(object valueObject) { ColorInterpolationMode value = (ColorInterpolationMode) valueObject; return (value == ColorInterpolationMode.ScRgbLinearInterpolation) || (value == ColorInterpolationMode.SRgbLinearInterpolation); } } } // 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 IsColorInterpolationModeValid(object valueObject) { ColorInterpolationMode value = (ColorInterpolationMode) valueObject; return (value == ColorInterpolationMode.ScRgbLinearInterpolation) || (value == ColorInterpolationMode.SRgbLinearInterpolation); } } } // 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
- TagMapInfo.cs
- CharUnicodeInfo.cs
- TopClause.cs
- RenderDataDrawingContext.cs
- SymbolEqualComparer.cs
- CodeSubDirectory.cs
- FileUtil.cs
- ValueUnavailableException.cs
- X509PeerCertificateAuthentication.cs
- TreeIterator.cs
- CreateUserWizardAutoFormat.cs
- CompositeCollectionView.cs
- assertwrapper.cs
- SqlDataAdapter.cs
- SyndicationElementExtension.cs
- ResourcesChangeInfo.cs
- InternalControlCollection.cs
- OrCondition.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- BaseResourcesBuildProvider.cs
- XsltException.cs
- PermissionAttributes.cs
- PlatformCulture.cs
- AnnotationObservableCollection.cs
- MimeAnyImporter.cs
- XmlArrayItemAttribute.cs
- WebConfigurationHost.cs
- CacheVirtualItemsEvent.cs
- BehaviorEditorPart.cs
- SqlTopReducer.cs
- XmlDocument.cs
- WebPartTransformerAttribute.cs
- TransactionManager.cs
- SignedXml.cs
- WebResourceAttribute.cs
- CustomTypeDescriptor.cs
- TraceContext.cs
- RegisteredHiddenField.cs
- DataFormats.cs
- DocumentViewerBase.cs
- ObjectDataSourceFilteringEventArgs.cs
- SourceSwitch.cs
- TextRangeBase.cs
- WebPartConnectionsDisconnectVerb.cs
- DataGridViewRowPostPaintEventArgs.cs
- EditBehavior.cs
- Quaternion.cs
- AsymmetricAlgorithm.cs
- CompositeActivityDesigner.cs
- IOThreadScheduler.cs
- BitmapEffectInputData.cs
- AppLevelCompilationSectionCache.cs
- WebPartVerbCollection.cs
- SecurityRuntime.cs
- DbConnectionHelper.cs
- TextTreeText.cs
- ChtmlPhoneCallAdapter.cs
- LinkArea.cs
- SystemIPInterfaceProperties.cs
- DataSourceHelper.cs
- MarkupCompilePass2.cs
- RegistrationServices.cs
- AutoResetEvent.cs
- ServicesUtilities.cs
- XsltLoader.cs
- TraceSwitch.cs
- ScriptDescriptor.cs
- DocumentPageTextView.cs
- ObjectStateFormatter.cs
- TraceProvider.cs
- TransformConverter.cs
- TreeNodeSelectionProcessor.cs
- FreeFormPanel.cs
- XmlSchemaImporter.cs
- CategoryGridEntry.cs
- OleDbCommandBuilder.cs
- UnauthorizedAccessException.cs
- XsdValidatingReader.cs
- InkCanvasSelectionAdorner.cs
- WindowsRichEditRange.cs
- FrameworkElement.cs
- _WebProxyDataBuilder.cs
- EnumerableCollectionView.cs
- PageBuildProvider.cs
- StateMachineSubscriptionManager.cs
- AsnEncodedData.cs
- LongTypeConverter.cs
- CssTextWriter.cs
- CngProvider.cs
- KeyInterop.cs
- SqlDataSourceTableQuery.cs
- Enum.cs
- EventLogPermissionAttribute.cs
- CodeDirectoryCompiler.cs
- MessageDecoder.cs
- EntityContainer.cs
- ProgressBar.cs
- Mouse.cs
- SslStreamSecurityUpgradeProvider.cs
- Brush.cs