Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DocumentReferenceCollection.cs
- ResourceLoader.cs
- ProxyWebPartManager.cs
- SHA384.cs
- UidPropertyAttribute.cs
- XmlNodeComparer.cs
- formatter.cs
- ScalarType.cs
- ThrowHelper.cs
- TerminatorSinks.cs
- RequestTimeoutManager.cs
- SctClaimDictionary.cs
- DSASignatureFormatter.cs
- Tokenizer.cs
- CodeTypeConstructor.cs
- ActivityValidationServices.cs
- ConfigurationHelpers.cs
- EventlogProvider.cs
- DetailsViewUpdatedEventArgs.cs
- ConditionCollection.cs
- FormViewPageEventArgs.cs
- ValidationService.cs
- SQLRoleProvider.cs
- TreeNode.cs
- PhysicalFontFamily.cs
- TypeLoadException.cs
- AudioDeviceOut.cs
- RoleGroupCollectionEditor.cs
- _LazyAsyncResult.cs
- FilterRepeater.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- BufferModesCollection.cs
- XsltException.cs
- CorrelationKeyCalculator.cs
- IdentifierService.cs
- ReflectPropertyDescriptor.cs
- MessageDecoder.cs
- FlowSwitchLink.cs
- Buffer.cs
- ProbeMatchesMessageCD1.cs
- PointAnimationUsingKeyFrames.cs
- MobileErrorInfo.cs
- DynamicDataManager.cs
- EnumerationRangeValidationUtil.cs
- base64Transforms.cs
- CmsUtils.cs
- FilterException.cs
- EntitySet.cs
- SQLDateTime.cs
- XmlAttribute.cs
- IBuiltInEvidence.cs
- NameTable.cs
- RightsManagementEncryptionTransform.cs
- TimeEnumHelper.cs
- RectangleGeometry.cs
- EntityCommandDefinition.cs
- GestureRecognizer.cs
- FilterableAttribute.cs
- ExpandCollapseProviderWrapper.cs
- OdbcConnectionOpen.cs
- ButtonChrome.cs
- path.cs
- EngineSite.cs
- TagNameToTypeMapper.cs
- LinkArea.cs
- WrappedReader.cs
- GenericTypeParameterConverter.cs
- FormattedText.cs
- ThreadStaticAttribute.cs
- AudioBase.cs
- IdnMapping.cs
- QuestionEventArgs.cs
- IntPtr.cs
- StreamReader.cs
- HttpHeaderCollection.cs
- Content.cs
- CuspData.cs
- ClientScriptManager.cs
- WindowInteractionStateTracker.cs
- HttpListenerRequestUriBuilder.cs
- DocumentApplicationJournalEntry.cs
- SimpleWebHandlerParser.cs
- SessionPageStateSection.cs
- SqlDataSourceQueryEditor.cs
- BulletChrome.cs
- DoubleCollectionValueSerializer.cs
- GridView.cs
- UnauthorizedWebPart.cs
- UnsafePeerToPeerMethods.cs
- HitTestWithGeometryDrawingContextWalker.cs
- ImplicitInputBrush.cs
- SimpleModelProvider.cs
- XPathParser.cs
- ExecutedRoutedEventArgs.cs
- ParallelTimeline.cs
- FlowDocumentReaderAutomationPeer.cs
- Adorner.cs
- BitVector32.cs
- ApplicationFileParser.cs
- ObjectDisposedException.cs