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
- SiteMapNode.cs
- SectionRecord.cs
- FileLoadException.cs
- AccessDataSourceView.cs
- DataGridParentRows.cs
- TreeViewItem.cs
- Literal.cs
- unsafeIndexingFilterStream.cs
- ElementMarkupObject.cs
- RemoteCryptoDecryptRequest.cs
- DataRelation.cs
- FontConverter.cs
- ChtmlCommandAdapter.cs
- MeshGeometry3D.cs
- AdornedElementPlaceholder.cs
- SecurityPolicySection.cs
- WindowsAuthenticationModule.cs
- DataServiceRequestOfT.cs
- RotationValidation.cs
- PseudoWebRequest.cs
- SafeEventLogWriteHandle.cs
- RelationshipFixer.cs
- ResumeStoryboard.cs
- PrtTicket_Editor.cs
- WebErrorHandler.cs
- AndCondition.cs
- Point3DCollectionValueSerializer.cs
- BaseInfoTable.cs
- WebEncodingValidatorAttribute.cs
- StateInitializationDesigner.cs
- Transform3DGroup.cs
- CounterSample.cs
- XslNumber.cs
- ParallelTimeline.cs
- Roles.cs
- SqlInternalConnection.cs
- BufferModeSettings.cs
- SelectorAutomationPeer.cs
- ResourceContainerWrapper.cs
- ResourceExpressionBuilder.cs
- InplaceBitmapMetadataWriter.cs
- DelimitedListTraceListener.cs
- recordstatescratchpad.cs
- RemoteWebConfigurationHostStream.cs
- ApplicationManager.cs
- OperatingSystem.cs
- _ConnectStream.cs
- odbcmetadatacollectionnames.cs
- ConsumerConnectionPoint.cs
- WebPartHeaderCloseVerb.cs
- DropSource.cs
- CompositeCollectionView.cs
- TPLETWProvider.cs
- AttributeQuery.cs
- DragCompletedEventArgs.cs
- ActivityExecutionContextCollection.cs
- ApplicationServiceHelper.cs
- BaseProcessor.cs
- IndexedString.cs
- MenuItemStyleCollectionEditor.cs
- ComboBox.cs
- XmlSchemaCollection.cs
- UIElementIsland.cs
- CheckBoxPopupAdapter.cs
- ShapingWorkspace.cs
- CookieProtection.cs
- LoginName.cs
- ProxyHwnd.cs
- BinaryObjectInfo.cs
- OracleSqlParser.cs
- ConnectionManager.cs
- SolidColorBrush.cs
- RowToFieldTransformer.cs
- CodeMemberMethod.cs
- PropertyOverridesDialog.cs
- TypeRestriction.cs
- GenerateDerivedKeyRequest.cs
- Column.cs
- GetPageNumberCompletedEventArgs.cs
- XmlReaderSettings.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- MemberProjectionIndex.cs
- MdImport.cs
- TextEffectCollection.cs
- EntityDataSourceUtil.cs
- ProfileGroupSettings.cs
- GridViewSelectEventArgs.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- GlyphsSerializer.cs
- TextChange.cs
- WindowsToolbarItemAsMenuItem.cs
- FixedSOMSemanticBox.cs
- ResourceReferenceExpressionConverter.cs
- ValidationPropertyAttribute.cs
- iisPickupDirectory.cs
- DiagnosticTrace.cs
- BaseTreeIterator.cs
- FormatConvertedBitmap.cs
- DataBoundControl.cs
- Geometry3D.cs