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
- TypeSystem.cs
- ImageDrawing.cs
- MimeTypeMapper.cs
- DataObjectEventArgs.cs
- HttpTransportSecurityElement.cs
- CounterCreationData.cs
- Win32PrintDialog.cs
- ListViewItemSelectionChangedEvent.cs
- EventTrigger.cs
- SerializationException.cs
- ReadOnlyDictionary.cs
- TCPClient.cs
- DesignSurfaceServiceContainer.cs
- DataGridState.cs
- ResourceExpression.cs
- KeyFrames.cs
- ValueChangedEventManager.cs
- CngKeyBlobFormat.cs
- Mouse.cs
- DateTimeUtil.cs
- SamlSecurityToken.cs
- WsatServiceCertificate.cs
- InheritanceContextHelper.cs
- BitmapCacheBrush.cs
- WebPartHelpVerb.cs
- EndOfStreamException.cs
- XomlDesignerLoader.cs
- DataGridTableCollection.cs
- WebPartDisplayModeEventArgs.cs
- Schedule.cs
- FixedSOMPageConstructor.cs
- DescendantOverDescendantQuery.cs
- DomNameTable.cs
- WebConfigurationHost.cs
- AttachedPropertiesService.cs
- Transactions.cs
- lengthconverter.cs
- ZipFileInfoCollection.cs
- ProbeDuplexAsyncResult.cs
- AbstractDataSvcMapFileLoader.cs
- WebPartConnectionsCancelEventArgs.cs
- SecurityElement.cs
- ParseChildrenAsPropertiesAttribute.cs
- ComNativeDescriptor.cs
- _ContextAwareResult.cs
- FacetChecker.cs
- BinaryReader.cs
- GenericIdentity.cs
- ResXResourceReader.cs
- SqlFlattener.cs
- SqlInternalConnection.cs
- StoreAnnotationsMap.cs
- XmlFormatReaderGenerator.cs
- Assembly.cs
- Model3D.cs
- Transform3D.cs
- CharKeyFrameCollection.cs
- ThreadSafeMessageFilterTable.cs
- ElementHost.cs
- Color.cs
- TextBoxView.cs
- TextSegment.cs
- XmlMapping.cs
- EntityContainerEntitySet.cs
- WindowsRichEditRange.cs
- DataBoundControlAdapter.cs
- ProfilePropertySettingsCollection.cs
- SmiRequestExecutor.cs
- Polyline.cs
- BindingUtils.cs
- SoapSchemaMember.cs
- MILUtilities.cs
- SequenceDesignerAccessibleObject.cs
- ChannelPool.cs
- QueryCacheManager.cs
- DocumentXPathNavigator.cs
- Bitmap.cs
- TextTreeUndo.cs
- SqlWorkflowInstanceStore.cs
- NegotiationTokenAuthenticator.cs
- RoleGroupCollection.cs
- Translator.cs
- SyndicationFeed.cs
- TreeNodeStyle.cs
- RegionIterator.cs
- ExtensionDataReader.cs
- UIntPtr.cs
- BasicBrowserDialog.cs
- XslTransformFileEditor.cs
- UseAttributeSetsAction.cs
- NavigationCommands.cs
- FocusChangedEventArgs.cs
- sqlser.cs
- X509SecurityTokenProvider.cs
- ToolStripPanelCell.cs
- ClientEventManager.cs
- InvalidAsynchronousStateException.cs
- EmptyCollection.cs
- ListViewUpdateEventArgs.cs
- AssemblyCollection.cs