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
- HMACSHA512.cs
- TemplatedEditableDesignerRegion.cs
- SelectedCellsChangedEventArgs.cs
- BuildProviderCollection.cs
- CodePropertyReferenceExpression.cs
- OleDbError.cs
- Native.cs
- sortedlist.cs
- compensatingcollection.cs
- ExceptionUtil.cs
- OleDbConnection.cs
- ScrollPattern.cs
- CompositeDesignerAccessibleObject.cs
- EdmSchemaError.cs
- MethodRental.cs
- PassportPrincipal.cs
- AsyncDataRequest.cs
- Marshal.cs
- FacetValueContainer.cs
- XPathNodeIterator.cs
- WebPartDisplayModeEventArgs.cs
- UriTemplateClientFormatter.cs
- SchemaImporterExtensionElementCollection.cs
- DataGridColumnStyleMappingNameEditor.cs
- EntityContainerEmitter.cs
- ColorConvertedBitmap.cs
- NumberEdit.cs
- DataGridPagerStyle.cs
- DrawToolTipEventArgs.cs
- __Error.cs
- HttpRuntime.cs
- DSGeneratorProblem.cs
- HttpListenerRequest.cs
- GrammarBuilder.cs
- MarkupProperty.cs
- AsyncOperation.cs
- BehaviorEditorPart.cs
- ConfigurationValues.cs
- ScriptingWebServicesSectionGroup.cs
- COM2TypeInfoProcessor.cs
- EntityDataSourceView.cs
- RegexMatch.cs
- TraceRecords.cs
- XmlElementCollection.cs
- ProcessThreadCollection.cs
- AuthenticationSchemesHelper.cs
- Point4D.cs
- TypefaceMap.cs
- AnnotationResourceCollection.cs
- TemplateGroupCollection.cs
- AlphaSortedEnumConverter.cs
- SdlChannelSink.cs
- DbConnectionOptions.cs
- TableColumnCollectionInternal.cs
- CallbackValidatorAttribute.cs
- BinaryMethodMessage.cs
- MSAAWinEventWrap.cs
- OleDbWrapper.cs
- GenericTypeParameterBuilder.cs
- WorkflowRuntimeService.cs
- BaseDataBoundControl.cs
- ReceiveActivity.cs
- DataGridViewColumnStateChangedEventArgs.cs
- GlobalAclOperationRequirement.cs
- PersistenceContextEnlistment.cs
- OneOf.cs
- FieldMetadata.cs
- BaseProcessor.cs
- AuthorizationRuleCollection.cs
- _SecureChannel.cs
- EntityProviderFactory.cs
- SQLInt64Storage.cs
- SafeThreadHandle.cs
- DynamicAttribute.cs
- TextPointerBase.cs
- PropertyValueChangedEvent.cs
- FilteredReadOnlyMetadataCollection.cs
- BamlWriter.cs
- ColorPalette.cs
- WebPageTraceListener.cs
- ServerValidateEventArgs.cs
- CanonicalXml.cs
- Propagator.Evaluator.cs
- CustomDictionarySources.cs
- CompositeScriptReference.cs
- BlockUIContainer.cs
- DataGridHeaderBorder.cs
- DataGridItemCollection.cs
- MoveSizeWinEventHandler.cs
- OdbcUtils.cs
- AuthorizationPolicyTypeElementCollection.cs
- Style.cs
- WebResourceUtil.cs
- DataSetMappper.cs
- VisualStyleElement.cs
- ToolStripContainer.cs
- XmlTextAttribute.cs
- SqlInternalConnectionTds.cs
- HtmlImage.cs
- CellCreator.cs