Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / ColorInterpolationModeValidation.cs / 1305600 / 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
- EntityException.cs
- PropertyChangingEventArgs.cs
- SoapObjectReader.cs
- SuppressIldasmAttribute.cs
- IntegerValidatorAttribute.cs
- UriWriter.cs
- TypeGenericEnumerableViewSchema.cs
- CodeComment.cs
- DoubleUtil.cs
- CorrelationService.cs
- DocumentStatusResources.cs
- ImportCatalogPart.cs
- ChannelServices.cs
- Int16KeyFrameCollection.cs
- DiagnosticTrace.cs
- XmlQueryOutput.cs
- CodeSnippetExpression.cs
- RichListBox.cs
- ScrollPattern.cs
- HandlerFactoryCache.cs
- DocumentReferenceCollection.cs
- MultiPartWriter.cs
- SqlNotificationRequest.cs
- XhtmlBasicSelectionListAdapter.cs
- MenuItemAutomationPeer.cs
- XmlCharCheckingReader.cs
- QilTernary.cs
- TraceSection.cs
- CompilerScopeManager.cs
- ScrollItemProviderWrapper.cs
- MonitoringDescriptionAttribute.cs
- ProtocolElementCollection.cs
- ByteKeyFrameCollection.cs
- WebPartVerb.cs
- BinaryFormatterWriter.cs
- DataDocumentXPathNavigator.cs
- IsolatedStorageFile.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- _NativeSSPI.cs
- PopupRootAutomationPeer.cs
- TimelineGroup.cs
- ObjectItemConventionAssemblyLoader.cs
- SmiMetaData.cs
- SafeReversePInvokeHandle.cs
- Win32Exception.cs
- _BaseOverlappedAsyncResult.cs
- X509Utils.cs
- Animatable.cs
- CryptoApi.cs
- ConnectionConsumerAttribute.cs
- XmlNodeComparer.cs
- MD5.cs
- KeyToListMap.cs
- PropertyPathConverter.cs
- TextStore.cs
- StringFormat.cs
- ManagedWndProcTracker.cs
- RowsCopiedEventArgs.cs
- ExtensibleClassFactory.cs
- ArraySet.cs
- AnimationStorage.cs
- BlockCollection.cs
- RegexBoyerMoore.cs
- SR.Designer.cs
- WhitespaceReader.cs
- MouseButton.cs
- ReadOnlyTernaryTree.cs
- UnsettableComboBox.cs
- ScriptBehaviorDescriptor.cs
- Choices.cs
- HttpListenerTimeoutManager.cs
- XmlSchemaNotation.cs
- RuntimeConfig.cs
- ConnectionOrientedTransportChannelListener.cs
- DataControlFieldCollection.cs
- HMACSHA256.cs
- Renderer.cs
- SoapCodeExporter.cs
- PrimaryKeyTypeConverter.cs
- ThreadPool.cs
- ResourceReferenceExpressionConverter.cs
- VarInfo.cs
- SettingsAttributeDictionary.cs
- BuildResultCache.cs
- XmlRawWriterWrapper.cs
- ZeroOpNode.cs
- ChannelSinkStacks.cs
- MediaElement.cs
- TextViewDesigner.cs
- HighlightComponent.cs
- CharEntityEncoderFallback.cs
- ToolStripItemImageRenderEventArgs.cs
- TraceListener.cs
- SerializerWriterEventHandlers.cs
- InlinedAggregationOperatorEnumerator.cs
- TextDecorationLocationValidation.cs
- HtmlEncodedRawTextWriter.cs
- ClipboardData.cs
- WebPermission.cs
- ObjectListCommandsPage.cs