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
- OrderingExpression.cs
- Regex.cs
- PeerContact.cs
- TripleDES.cs
- PageCatalogPart.cs
- PageFunction.cs
- StylusLogic.cs
- DecimalSumAggregationOperator.cs
- MessageQueue.cs
- TextProperties.cs
- WebResourceAttribute.cs
- DataGridItem.cs
- Int32Converter.cs
- XmlExceptionHelper.cs
- FrameworkPropertyMetadata.cs
- DbProviderServices.cs
- WindowsIdentity.cs
- InstanceDataCollectionCollection.cs
- CompoundFileStorageReference.cs
- ComponentSerializationService.cs
- TabControl.cs
- EntityProviderServices.cs
- Annotation.cs
- ListViewItem.cs
- MsmqIntegrationValidationBehavior.cs
- PathFigure.cs
- ImplicitInputBrush.cs
- ZipIOLocalFileDataDescriptor.cs
- DataTablePropertyDescriptor.cs
- HttpValueCollection.cs
- XPathPatternBuilder.cs
- AutomationAttributeInfo.cs
- GC.cs
- WebPartDisplayModeCancelEventArgs.cs
- Peer.cs
- DataGridViewColumnDesigner.cs
- BStrWrapper.cs
- ForceCopyBuildProvider.cs
- WCFBuildProvider.cs
- DeviceSpecificChoice.cs
- SafeBitVector32.cs
- DateTimeValueSerializerContext.cs
- PolyLineSegment.cs
- SmtpDigestAuthenticationModule.cs
- SecurityProtocolCorrelationState.cs
- PageStatePersister.cs
- TailPinnedEventArgs.cs
- _LocalDataStore.cs
- unsafenativemethodsother.cs
- SplitterPanel.cs
- IdentifierCollection.cs
- CommandConverter.cs
- Baml2006ReaderSettings.cs
- RangeValuePattern.cs
- DataGridTablesFactory.cs
- BinaryNode.cs
- DesignerActionPanel.cs
- QilLoop.cs
- StrokeCollectionDefaultValueFactory.cs
- SqlUserDefinedAggregateAttribute.cs
- AsyncSerializedWorker.cs
- DragCompletedEventArgs.cs
- EnumValAlphaComparer.cs
- SqlDesignerDataSourceView.cs
- XmlEncApr2001.cs
- ColorConverter.cs
- ClientRuntimeConfig.cs
- ConfigurationSection.cs
- LoginCancelEventArgs.cs
- StringExpressionSet.cs
- JapaneseCalendar.cs
- SqlPersistenceProviderFactory.cs
- TypeInitializationException.cs
- FactoryMaker.cs
- DataGridViewDataConnection.cs
- WebPartUtil.cs
- GZipStream.cs
- UserUseLicenseDictionaryLoader.cs
- WriteableBitmap.cs
- DataExpression.cs
- XmlImplementation.cs
- PropertyInfoSet.cs
- HttpWebResponse.cs
- FontFamily.cs
- TraceEventCache.cs
- DataPagerField.cs
- Grid.cs
- XmlHelper.cs
- TypedRowHandler.cs
- AppModelKnownContentFactory.cs
- CoTaskMemHandle.cs
- QuaternionAnimation.cs
- CornerRadiusConverter.cs
- SafeFileHandle.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ColumnMapTranslator.cs
- ConnectionInterfaceCollection.cs
- DataGridViewLinkCell.cs
- BCryptNative.cs
- SqlInternalConnectionSmi.cs