Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- LinkUtilities.cs
- RestHandlerFactory.cs
- DefaultValueAttribute.cs
- ToolStripArrowRenderEventArgs.cs
- ScrollEvent.cs
- securitycriticaldataformultiplegetandset.cs
- XmlDataDocument.cs
- KeySpline.cs
- RoleManagerEventArgs.cs
- SynchronizationContext.cs
- FieldDescriptor.cs
- WindowsListView.cs
- UpDownBase.cs
- EraserBehavior.cs
- NumberSubstitution.cs
- Point3DKeyFrameCollection.cs
- SubclassTypeValidatorAttribute.cs
- CollectionAdapters.cs
- Root.cs
- MouseEvent.cs
- ElementHost.cs
- AlternationConverter.cs
- BinarySecretSecurityToken.cs
- SortableBindingList.cs
- PageHandlerFactory.cs
- XMLDiffLoader.cs
- ProfileSection.cs
- ParameterToken.cs
- TdsEnums.cs
- MenuEventArgs.cs
- EmptyElement.cs
- ClientBuildManager.cs
- MultipleViewProviderWrapper.cs
- XmlSchemaComplexContentExtension.cs
- ConfigXmlComment.cs
- AbstractDataSvcMapFileLoader.cs
- GrammarBuilderDictation.cs
- XpsS0ValidatingLoader.cs
- MatrixTransform.cs
- SurrogateEncoder.cs
- DialogResultConverter.cs
- SRGSCompiler.cs
- NativeMethods.cs
- DetailsViewInsertEventArgs.cs
- SqlParameterizer.cs
- XmlQueryCardinality.cs
- XmlUtf8RawTextWriter.cs
- WithParamAction.cs
- ExtendedPropertiesHandler.cs
- MarshalDirectiveException.cs
- DefaultMemberAttribute.cs
- Message.cs
- MenuItemStyleCollection.cs
- ServiceHostingEnvironmentSection.cs
- DrawingCollection.cs
- CharacterString.cs
- ModuleConfigurationInfo.cs
- Instrumentation.cs
- AssemblyCache.cs
- HwndSourceParameters.cs
- TypedTableGenerator.cs
- CodeAccessPermission.cs
- ApplicationServiceManager.cs
- TitleStyle.cs
- PipelineModuleStepContainer.cs
- CharacterHit.cs
- DataServiceClientException.cs
- CommandExpr.cs
- ClientProxyGenerator.cs
- Char.cs
- ConsoleEntryPoint.cs
- ProjectionPruner.cs
- CompoundFileDeflateTransform.cs
- XamlTypeWithExplicitNamespace.cs
- DataGridCommandEventArgs.cs
- FusionWrap.cs
- HealthMonitoringSectionHelper.cs
- DataServiceRequestArgs.cs
- TiffBitmapDecoder.cs
- HttpWebResponse.cs
- KnownBoxes.cs
- LogAppendAsyncResult.cs
- ListViewGroupConverter.cs
- UnicodeEncoding.cs
- HandlerMappingMemo.cs
- PriorityQueue.cs
- BufferedWebEventProvider.cs
- IntegerFacetDescriptionElement.cs
- DetailsViewDeletedEventArgs.cs
- DirectoryInfo.cs
- StylusCollection.cs
- DataGridRowEventArgs.cs
- FrameworkContentElementAutomationPeer.cs
- CodeDirectoryCompiler.cs
- DifferencingCollection.cs
- TextRenderer.cs
- SerializationAttributes.cs
- FocusManager.cs
- VarInfo.cs
- WebControlAdapter.cs