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
- SuppressIldasmAttribute.cs
- CompilerScopeManager.cs
- Speller.cs
- ContractAdapter.cs
- TextAnchor.cs
- EntityDesignerUtils.cs
- ConfigurationManagerHelperFactory.cs
- DbProviderFactories.cs
- AnonymousIdentificationModule.cs
- PasswordPropertyTextAttribute.cs
- XmlSchemaDocumentation.cs
- InvalidOleVariantTypeException.cs
- Visitor.cs
- EntityCommandExecutionException.cs
- StrongNameUtility.cs
- WsatRegistrationHeader.cs
- StatusBarItemAutomationPeer.cs
- NonBatchDirectoryCompiler.cs
- CrossContextChannel.cs
- PKCS1MaskGenerationMethod.cs
- DbProviderManifest.cs
- HijriCalendar.cs
- TableChangeProcessor.cs
- SkipQueryOptionExpression.cs
- SchemaDeclBase.cs
- PolyLineSegment.cs
- RecognitionEventArgs.cs
- SafeNativeMethods.cs
- BamlResourceSerializer.cs
- ContentPresenter.cs
- HMACSHA384.cs
- SqlDataSourceConfigureSortForm.cs
- RecordBuilder.cs
- XmlQueryTypeFactory.cs
- ClaimSet.cs
- SiteMapNode.cs
- CompositeControl.cs
- EditorZone.cs
- AlternateView.cs
- DictionaryManager.cs
- BooleanFacetDescriptionElement.cs
- ServicePoint.cs
- UmAlQuraCalendar.cs
- RepeatEnumerable.cs
- CoTaskMemHandle.cs
- SolidBrush.cs
- PopupRootAutomationPeer.cs
- BehaviorService.cs
- EntitySqlQueryCacheKey.cs
- IdentifierCollection.cs
- BitmapDownload.cs
- WizardForm.cs
- RelatedView.cs
- AudioDeviceOut.cs
- Stroke.cs
- MissingManifestResourceException.cs
- basevalidator.cs
- TraceContextEventArgs.cs
- RecognitionResult.cs
- GridViewColumnCollection.cs
- HwndTarget.cs
- ExtentJoinTreeNode.cs
- TextViewElement.cs
- CommentGlyph.cs
- UnsafeCollabNativeMethods.cs
- XmlSchemaAnnotation.cs
- SmiXetterAccessMap.cs
- MetadataExchangeClient.cs
- FontFamilyIdentifier.cs
- QilCloneVisitor.cs
- LoadRetryConstantStrategy.cs
- VisualTreeUtils.cs
- OutOfProcStateClientManager.cs
- ControlEvent.cs
- CheckBox.cs
- DataListItemEventArgs.cs
- ImageIndexEditor.cs
- TextRangeEditTables.cs
- StrongNameKeyPair.cs
- WebContext.cs
- XmlSignificantWhitespace.cs
- ProviderUtil.cs
- BuildManagerHost.cs
- XmlSchemaException.cs
- SQLMembershipProvider.cs
- PasswordBox.cs
- AutomationPattern.cs
- LassoHelper.cs
- DefaultExpression.cs
- glyphs.cs
- XmlWhitespace.cs
- ContentControl.cs
- DBConcurrencyException.cs
- SmiXetterAccessMap.cs
- ApplicationTrust.cs
- ResourceDisplayNameAttribute.cs
- DocumentApplicationState.cs
- WebPartEventArgs.cs
- Adorner.cs
- UICuesEvent.cs