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
- DataContractSerializerOperationFormatter.cs
- MergeFailedEvent.cs
- JsonFormatReaderGenerator.cs
- MethodExpr.cs
- CompressEmulationStream.cs
- ControlFilterExpression.cs
- MethodMessage.cs
- ButtonAutomationPeer.cs
- RefreshPropertiesAttribute.cs
- SHA1CryptoServiceProvider.cs
- DebugControllerThread.cs
- ToolbarAUtomationPeer.cs
- RuntimeConfig.cs
- ItemCollection.cs
- ProfileGroupSettings.cs
- UIAgentAsyncEndRequest.cs
- ParsedAttributeCollection.cs
- SafeThreadHandle.cs
- EventData.cs
- ResourcePool.cs
- TextEffectCollection.cs
- WorkflowPersistenceService.cs
- ExpressionWriter.cs
- XmlAtomErrorReader.cs
- RenderContext.cs
- SignatureToken.cs
- BinaryEditor.cs
- ColorTransform.cs
- ToggleProviderWrapper.cs
- SettingsSection.cs
- ColorDialog.cs
- CompositeActivityValidator.cs
- ChannelPoolSettings.cs
- MultipleViewProviderWrapper.cs
- GridViewRowCollection.cs
- PriorityItem.cs
- GeneralTransform2DTo3D.cs
- ProviderSettings.cs
- QuestionEventArgs.cs
- SplitterEvent.cs
- DataGridViewColumnConverter.cs
- OutputCacheModule.cs
- BoundField.cs
- Drawing.cs
- TabItem.cs
- WmlLabelAdapter.cs
- Form.cs
- RuleElement.cs
- MaskedTextBox.cs
- FileDataSourceCache.cs
- XmlLanguageConverter.cs
- RenderData.cs
- EditorPartChrome.cs
- HwndProxyElementProvider.cs
- IntSecurity.cs
- DateTimePicker.cs
- InternalResources.cs
- LifetimeServices.cs
- counter.cs
- SelectionProviderWrapper.cs
- VScrollBar.cs
- EventDescriptor.cs
- StylusPointCollection.cs
- WebPartConnectionCollection.cs
- PrintPreviewDialog.cs
- RijndaelCryptoServiceProvider.cs
- Drawing.cs
- DbFunctionCommandTree.cs
- ArrayElementGridEntry.cs
- CompilerScopeManager.cs
- objectresult_tresulttype.cs
- MultiView.cs
- EncoderExceptionFallback.cs
- XmlSchemaSearchPattern.cs
- EntitySqlQueryState.cs
- GridViewAutomationPeer.cs
- ToolStripOverflowButton.cs
- XmlNodeList.cs
- QilStrConcat.cs
- ItemMap.cs
- ZipIORawDataFileBlock.cs
- DoubleCollectionValueSerializer.cs
- EmptyElement.cs
- XmlSchemaAttribute.cs
- DataGridItemCollection.cs
- NumericUpDownAccelerationCollection.cs
- DataException.cs
- ByteFacetDescriptionElement.cs
- DiagnosticTrace.cs
- PermissionAttributes.cs
- PerformanceCounters.cs
- ParameterSubsegment.cs
- HttpModulesSection.cs
- XmlChildNodes.cs
- datacache.cs
- BindingExpressionUncommonField.cs
- SqlConnectionFactory.cs
- Attachment.cs
- TextBox.cs
- ItemAutomationPeer.cs