Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Shared / MS / Internal / Generated / ColorInterpolationModeValidation.cs / 1305600 / 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
- MdiWindowListItemConverter.cs
- ListGeneralPage.cs
- HWStack.cs
- CompatibleComparer.cs
- GridItemProviderWrapper.cs
- CompiledAction.cs
- FontWeight.cs
- TextServicesCompartmentContext.cs
- SQLByte.cs
- ConnectionOrientedTransportElement.cs
- ToolboxItemFilterAttribute.cs
- Comparer.cs
- DoubleCollection.cs
- SafeEventLogWriteHandle.cs
- SourceLineInfo.cs
- Control.cs
- BamlStream.cs
- SchemaDeclBase.cs
- BulletChrome.cs
- WindowsFormsLinkLabel.cs
- MenuItemAutomationPeer.cs
- SafeThreadHandle.cs
- HttpDebugHandler.cs
- RIPEMD160.cs
- ZoneIdentityPermission.cs
- DataGridPageChangedEventArgs.cs
- EntityContainerEmitter.cs
- DataSourceView.cs
- BitmapEffectInput.cs
- TemplateBindingExtension.cs
- WmpBitmapDecoder.cs
- DbConnectionPool.cs
- HyperLink.cs
- FixedSOMGroup.cs
- SimpleExpression.cs
- RenderOptions.cs
- XsltSettings.cs
- Dynamic.cs
- InvalidAsynchronousStateException.cs
- EventSinkHelperWriter.cs
- PublisherMembershipCondition.cs
- FormClosedEvent.cs
- XmlSchemaSimpleTypeRestriction.cs
- FullTrustAssembliesSection.cs
- CodeActivityContext.cs
- SamlAuthorityBinding.cs
- ProviderException.cs
- ListBox.cs
- QueryStatement.cs
- WizardForm.cs
- ExpandoObject.cs
- CodeDirectoryCompiler.cs
- MetadataItem_Static.cs
- TiffBitmapDecoder.cs
- ProviderUtil.cs
- TextMetrics.cs
- DataTrigger.cs
- CookieParameter.cs
- CompositeDataBoundControl.cs
- SpecialFolderEnumConverter.cs
- PropertyTabChangedEvent.cs
- PixelFormat.cs
- Serializer.cs
- XmlProcessingInstruction.cs
- EmptyEnumerator.cs
- CompositionAdorner.cs
- JournalEntryStack.cs
- WindowsListViewItem.cs
- DataServiceExpressionVisitor.cs
- TextBoxBase.cs
- Delegate.cs
- DesigntimeLicenseContextSerializer.cs
- BasicCellRelation.cs
- PreservationFileWriter.cs
- AnnotationComponentManager.cs
- DynamicDiscoSearcher.cs
- Empty.cs
- HtmlMobileTextWriter.cs
- ExceptionRoutedEventArgs.cs
- GcSettings.cs
- ActiveXSite.cs
- FixedTextSelectionProcessor.cs
- GZipStream.cs
- GroupBox.cs
- UnsafeNativeMethods.cs
- DataSourceControl.cs
- ExceptionUtil.cs
- ObjectHandle.cs
- Faults.cs
- httpapplicationstate.cs
- VirtualDirectoryMapping.cs
- PolyBezierSegmentFigureLogic.cs
- Label.cs
- XsdValidatingReader.cs
- util.cs
- DoubleCollection.cs
- ThemeableAttribute.cs
- MeasureItemEvent.cs
- AnchorEditor.cs
- PingReply.cs