Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- MaterializeFromAtom.cs
- ListItemsPage.cs
- WebPartDisplayModeCollection.cs
- WinFormsSecurity.cs
- ViewSimplifier.cs
- ChannelFactoryBase.cs
- MetadataCache.cs
- PTProvider.cs
- DynamicDiscoSearcher.cs
- GatewayIPAddressInformationCollection.cs
- ExpressionTextBox.xaml.cs
- FlowSwitchDesigner.xaml.cs
- XPathSelfQuery.cs
- BoolExpression.cs
- InstanceData.cs
- Label.cs
- ExceptionUtility.cs
- FacetEnabledSchemaElement.cs
- OleDbConnection.cs
- BasicKeyConstraint.cs
- ToggleProviderWrapper.cs
- IArgumentProvider.cs
- ServiceNameElementCollection.cs
- CodeParameterDeclarationExpressionCollection.cs
- WindowsStatic.cs
- HwndSourceKeyboardInputSite.cs
- InputLanguageSource.cs
- SaveWorkflowAsyncResult.cs
- BitmapEffectGroup.cs
- AnnotationMap.cs
- RedirectionProxy.cs
- RtfToXamlReader.cs
- ValidatingPropertiesEventArgs.cs
- DetailsViewDeleteEventArgs.cs
- TaiwanCalendar.cs
- LicenseProviderAttribute.cs
- LookupNode.cs
- XmlSchemas.cs
- EventHandlerList.cs
- ContentElementAutomationPeer.cs
- ApplicationSecurityInfo.cs
- XmlCharCheckingWriter.cs
- SQLBinaryStorage.cs
- ComponentResourceKey.cs
- References.cs
- ScrollItemProviderWrapper.cs
- PageHandlerFactory.cs
- WSHttpSecurityElement.cs
- FreezableCollection.cs
- XhtmlConformanceSection.cs
- XPathPatternBuilder.cs
- ComponentChangedEvent.cs
- Brush.cs
- WorkflowServiceAttributesTypeConverter.cs
- WindowsGraphics.cs
- ChannelDispatcherBase.cs
- ImplicitInputBrush.cs
- XmlSchemaAttributeGroup.cs
- SafeNativeMethods.cs
- httpserverutility.cs
- ListDictionaryInternal.cs
- NetworkInformationPermission.cs
- ServerValidateEventArgs.cs
- ILGenerator.cs
- ServiceHttpModule.cs
- Token.cs
- GroupDescription.cs
- SystemPens.cs
- SqlDataRecord.cs
- Knowncolors.cs
- HtmlTableRowCollection.cs
- SoapHttpTransportImporter.cs
- Normalization.cs
- ArraySet.cs
- PointF.cs
- WebResponse.cs
- COM2ExtendedBrowsingHandler.cs
- SemanticValue.cs
- COM2EnumConverter.cs
- DataGridViewLinkCell.cs
- DbXmlEnabledProviderManifest.cs
- HttpCookieCollection.cs
- PersistenceTask.cs
- Condition.cs
- DEREncoding.cs
- DependentList.cs
- MLangCodePageEncoding.cs
- EventLogTraceListener.cs
- LambdaCompiler.ControlFlow.cs
- SpotLight.cs
- OdbcCommandBuilder.cs
- TextUtf8RawTextWriter.cs
- ConstructorNeedsTagAttribute.cs
- SqlStream.cs
- QueryCreatedEventArgs.cs
- HtmlElementEventArgs.cs
- IdentityNotMappedException.cs
- TracingConnectionInitiator.cs
- SafeMemoryMappedFileHandle.cs
- ContextTokenTypeConverter.cs