Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- DataSvcMapFileSerializer.cs
- ColorTranslator.cs
- SingleAnimation.cs
- TimeStampChecker.cs
- TypeUnloadedException.cs
- EntityKeyElement.cs
- FormatterServices.cs
- SchemaImporterExtensionsSection.cs
- GetPageNumberCompletedEventArgs.cs
- MailAddressCollection.cs
- FontWeights.cs
- InspectionWorker.cs
- _LocalDataStoreMgr.cs
- Brush.cs
- PathGeometry.cs
- InvalidComObjectException.cs
- HuffCodec.cs
- webproxy.cs
- SqlProviderServices.cs
- CurrentChangingEventManager.cs
- DesignerDeviceConfig.cs
- ButtonField.cs
- GenericPrincipal.cs
- DiscoveryReference.cs
- CroppedBitmap.cs
- SymbolUsageManager.cs
- TableItemPattern.cs
- ThaiBuddhistCalendar.cs
- TraceProvider.cs
- GroupQuery.cs
- BrowserCapabilitiesFactory35.cs
- PropertyTabChangedEvent.cs
- SByteStorage.cs
- CompressionTracing.cs
- NetworkInformationException.cs
- Int32Converter.cs
- SafeLibraryHandle.cs
- DoubleCollectionConverter.cs
- KerberosSecurityTokenAuthenticator.cs
- TransformGroup.cs
- ColorAnimation.cs
- ListSortDescriptionCollection.cs
- SafeSecurityHelper.cs
- SqlRemoveConstantOrderBy.cs
- Soap12ProtocolImporter.cs
- XmlIlVisitor.cs
- BitmapData.cs
- Rect3D.cs
- DataBindEngine.cs
- ConfigurationElementCollection.cs
- TraceEventCache.cs
- RenderData.cs
- ActionItem.cs
- UserNamePasswordClientCredential.cs
- VirtualDirectoryMappingCollection.cs
- ArgumentValidation.cs
- ButtonAutomationPeer.cs
- Mappings.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- LayoutSettings.cs
- SystemPens.cs
- WriteFileContext.cs
- Point3DAnimation.cs
- TabItemWrapperAutomationPeer.cs
- PerformanceCounterManager.cs
- PartitionerStatic.cs
- SystemIPInterfaceStatistics.cs
- EncoderReplacementFallback.cs
- RectangleGeometry.cs
- SByteConverter.cs
- MemoryPressure.cs
- InputMethodStateTypeInfo.cs
- _SingleItemRequestCache.cs
- CreateUserWizardStep.cs
- WindowsFormsHostPropertyMap.cs
- LayoutTableCell.cs
- MaskDescriptors.cs
- SqlDependencyListener.cs
- AppModelKnownContentFactory.cs
- FilteredDataSetHelper.cs
- CodeThrowExceptionStatement.cs
- LocalServiceSecuritySettingsElement.cs
- SessionEndingEventArgs.cs
- GridViewCommandEventArgs.cs
- RelationshipSet.cs
- TextReader.cs
- Rfc2898DeriveBytes.cs
- XamlPathDataSerializer.cs
- BooleanKeyFrameCollection.cs
- Event.cs
- ProxyHelper.cs
- recordstatescratchpad.cs
- GCHandleCookieTable.cs
- TraceSwitch.cs
- DesignerDataColumn.cs
- ResourcesChangeInfo.cs
- storepermission.cs
- HttpPostedFile.cs
- TheQuery.cs
- URLMembershipCondition.cs