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
- FileUtil.cs
- EncryptedType.cs
- BuildResultCache.cs
- DoubleKeyFrameCollection.cs
- Help.cs
- OleDbDataAdapter.cs
- SettingsPropertyWrongTypeException.cs
- CaseExpr.cs
- PagedDataSource.cs
- SamlSubjectStatement.cs
- DelegateSerializationHolder.cs
- DynamicFilter.cs
- ClientRolePrincipal.cs
- ServiceX509SecurityTokenProvider.cs
- ListViewContainer.cs
- CorruptStoreException.cs
- WebServiceParameterData.cs
- CacheOutputQuery.cs
- CacheHelper.cs
- EnumMember.cs
- IsolatedStorageFilePermission.cs
- DockAndAnchorLayout.cs
- CompositeDataBoundControl.cs
- securestring.cs
- FontClient.cs
- MetadataArtifactLoaderCompositeFile.cs
- TypePresenter.xaml.cs
- AuthenticationModulesSection.cs
- ServiceModelEnumValidator.cs
- Calendar.cs
- CoreSwitches.cs
- RemotingConfigParser.cs
- PrePrepareMethodAttribute.cs
- DockAndAnchorLayout.cs
- MouseBinding.cs
- TextFormatter.cs
- SqlBuilder.cs
- mediaclock.cs
- RichTextBoxConstants.cs
- SchemaDeclBase.cs
- NavigationProgressEventArgs.cs
- XmlDesigner.cs
- DummyDataSource.cs
- Sql8ExpressionRewriter.cs
- ObfuscationAttribute.cs
- RegionData.cs
- DoubleAnimation.cs
- DirectoryInfo.cs
- TimeoutTimer.cs
- BindingMemberInfo.cs
- EncoderExceptionFallback.cs
- InternalBase.cs
- SecurityTokenReferenceStyle.cs
- BamlResourceSerializer.cs
- ObsoleteAttribute.cs
- SqlServer2KCompatibilityCheck.cs
- DbProviderServices.cs
- JoinQueryOperator.cs
- ConfigurationPropertyCollection.cs
- SessionMode.cs
- Validator.cs
- HighlightVisual.cs
- SafeLibraryHandle.cs
- HashStream.cs
- HelloMessage11.cs
- TableHeaderCell.cs
- UserPreferenceChangedEventArgs.cs
- XXXInfos.cs
- TextContainer.cs
- Matrix3D.cs
- TypeContext.cs
- CryptoHandle.cs
- Int64Animation.cs
- ExpressionBuilderContext.cs
- CacheDict.cs
- EdmSchemaError.cs
- XPathSelfQuery.cs
- FileReader.cs
- XmlWellformedWriter.cs
- CodeEntryPointMethod.cs
- CompositeDataBoundControl.cs
- DataGridViewRow.cs
- ListItemViewControl.cs
- IInstanceTable.cs
- UnicodeEncoding.cs
- ObjectConverter.cs
- ButtonFieldBase.cs
- CachedTypeface.cs
- MethodAccessException.cs
- FixedTextPointer.cs
- AsymmetricKeyExchangeDeformatter.cs
- DataGridViewCellStyleChangedEventArgs.cs
- RefreshEventArgs.cs
- TraceListener.cs
- SmiRecordBuffer.cs
- IssuanceLicense.cs
- StrokeNodeOperations.cs
- LOSFormatter.cs
- Trustee.cs
- KnownTypes.cs