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
- LazyTextWriterCreator.cs
- ActivityXRefPropertyEditor.cs
- SelectionRange.cs
- SecurityCriticalDataForSet.cs
- DataErrorValidationRule.cs
- Validator.cs
- OraclePermissionAttribute.cs
- AspNetPartialTrustHelpers.cs
- ScrollItemPatternIdentifiers.cs
- Utils.cs
- SerialStream.cs
- ToolStripPanelRenderEventArgs.cs
- DbDataReader.cs
- CornerRadius.cs
- BitStream.cs
- AspProxy.cs
- TextTreeObjectNode.cs
- SerialPinChanges.cs
- ViewEventArgs.cs
- DefaultValidator.cs
- RuleSettingsCollection.cs
- SchemeSettingElementCollection.cs
- DateRangeEvent.cs
- CopyNamespacesAction.cs
- SamlConstants.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- XmlSchemaSimpleTypeRestriction.cs
- ChannelManagerService.cs
- BindingNavigator.cs
- Vector3DAnimation.cs
- BuildProvider.cs
- ClientSideProviderDescription.cs
- BuildDependencySet.cs
- DataGridViewColumn.cs
- OleDbDataAdapter.cs
- WinEventQueueItem.cs
- ScrollBarRenderer.cs
- WebService.cs
- Events.cs
- CapacityStreamGeometryContext.cs
- XmlChildEnumerator.cs
- StringKeyFrameCollection.cs
- XmlAtomErrorReader.cs
- OptimizedTemplateContent.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SponsorHelper.cs
- ReflectPropertyDescriptor.cs
- TemplatedWizardStep.cs
- BindingOperations.cs
- DataGridViewEditingControlShowingEventArgs.cs
- Token.cs
- validationstate.cs
- BaseTreeIterator.cs
- Content.cs
- PreviewPageInfo.cs
- TraceLevelHelper.cs
- HierarchicalDataSourceIDConverter.cs
- XmlLanguageConverter.cs
- SqlFlattener.cs
- WorkflowApplicationAbortedException.cs
- FocusChangedEventArgs.cs
- EdmFunction.cs
- FormsAuthenticationTicket.cs
- ImmutableObjectAttribute.cs
- WindowsBrush.cs
- MessageQuerySet.cs
- LinearGradientBrush.cs
- AnimatedTypeHelpers.cs
- SqlReorderer.cs
- WebPartDescription.cs
- InlineCollection.cs
- MarkupExtensionParser.cs
- StylusTip.cs
- URLAttribute.cs
- XmlRawWriter.cs
- ChangeDirector.cs
- ViewBase.cs
- FlowLayoutPanel.cs
- ComplexPropertyEntry.cs
- DataGridViewCellMouseEventArgs.cs
- WebZone.cs
- EntityDataSourceWrapperCollection.cs
- SystemIcmpV4Statistics.cs
- DataGridViewControlCollection.cs
- DiscoveryDocument.cs
- ReferentialConstraint.cs
- IPAddressCollection.cs
- DigestTraceRecordHelper.cs
- XmlEnumAttribute.cs
- HtmlControl.cs
- RequestUriProcessor.cs
- ButtonFlatAdapter.cs
- BlurEffect.cs
- IDispatchConstantAttribute.cs
- ManagedCodeMarkers.cs
- InputBindingCollection.cs
- XmlAttributeAttribute.cs
- CompilationUnit.cs
- DrawingVisualDrawingContext.cs
- ExceptionHelpers.cs