Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / System / Windows / Media / GradientStop.cs / 1 / GradientStop.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: GradientStop.cs // // Description: This file contains the implementation of a GradientStop. // The GradientStop class contains a color and an offset, and is // used by GradientBrush. // // History: // 04/30/2003 : adsmith - Created it // //--------------------------------------------------------------------------- using MS.Internal; using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Markup; namespace System.Windows.Media { ////// GradientStop - The gradient stop is a tuple consisting of an offset and a color. /// A collection of gradient stops help describe the contents of a GradientBrush. /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] public sealed partial class GradientStop : Animatable { #region Constructors ////// GradientStop - Initialize this GradientStop /// public GradientStop() { } ////// GradientStop - Initialize this GradientStop from a constant Color and offset. /// /// The Color at this offset. /// The offset within the Gradient. public GradientStop(Color color, double offset) { Color = color; Offset = offset; } #endregion Constructors } } // 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. // // File: GradientStop.cs // // Description: This file contains the implementation of a GradientStop. // The GradientStop class contains a color and an offset, and is // used by GradientBrush. // // History: // 04/30/2003 : adsmith - Created it // //--------------------------------------------------------------------------- using MS.Internal; using System; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Markup; namespace System.Windows.Media { ////// GradientStop - The gradient stop is a tuple consisting of an offset and a color. /// A collection of gradient stops help describe the contents of a GradientBrush. /// [Localizability(LocalizationCategory.None, Readability = Readability.Unreadable)] public sealed partial class GradientStop : Animatable { #region Constructors ////// GradientStop - Initialize this GradientStop /// public GradientStop() { } ////// GradientStop - Initialize this GradientStop from a constant Color and offset. /// /// The Color at this offset. /// The offset within the Gradient. public GradientStop(Color color, double offset) { Color = color; Offset = offset; } #endregion Constructors } } // 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
- DocumentViewerBaseAutomationPeer.cs
- DoubleLinkList.cs
- TableLayoutColumnStyleCollection.cs
- RectAnimation.cs
- InheritanceRules.cs
- InternalCompensate.cs
- XmlException.cs
- FastEncoderStatics.cs
- ImageDrawing.cs
- ErrorCodes.cs
- WhereQueryOperator.cs
- WindowShowOrOpenTracker.cs
- TextTreeObjectNode.cs
- PreProcessor.cs
- XmlCharacterData.cs
- ServiceNameCollection.cs
- InputMethod.cs
- TypeLibConverter.cs
- ApplicationDirectoryMembershipCondition.cs
- ObfuscationAttribute.cs
- PkcsUtils.cs
- SByteConverter.cs
- ChtmlSelectionListAdapter.cs
- NameValueSectionHandler.cs
- ConfigurationFileMap.cs
- ImageSourceValueSerializer.cs
- UnsafeNativeMethods.cs
- DynamicExpression.cs
- QfeChecker.cs
- SamlAdvice.cs
- SspiNegotiationTokenAuthenticatorState.cs
- ScrollEventArgs.cs
- GeneralTransformGroup.cs
- PixelShader.cs
- FontSource.cs
- WizardStepBase.cs
- DBSqlParserColumn.cs
- SafeFileMapViewHandle.cs
- ContainerUIElement3D.cs
- NavigateEvent.cs
- ConditionCollection.cs
- arclist.cs
- XmlValidatingReaderImpl.cs
- HttpListenerElement.cs
- ReferentialConstraint.cs
- ToggleButtonAutomationPeer.cs
- FlatButtonAppearance.cs
- SynchronizedDispatch.cs
- RuntimeHandles.cs
- GiveFeedbackEvent.cs
- ProcessProtocolHandler.cs
- SerializationObjectManager.cs
- DetailsViewInsertEventArgs.cs
- SecurityException.cs
- WSSecurityPolicy.cs
- ResXResourceReader.cs
- MaterialGroup.cs
- ItemMap.cs
- SettingsAttributes.cs
- TcpHostedTransportConfiguration.cs
- AccessibleObject.cs
- QueryExpr.cs
- PieceNameHelper.cs
- KeyNotFoundException.cs
- XmlSchemaFacet.cs
- MediaTimeline.cs
- NavigationHelper.cs
- InputMethod.cs
- WebPartUserCapability.cs
- WebServiceClientProxyGenerator.cs
- DataObjectAttribute.cs
- WindowsListViewItem.cs
- ParameterReplacerVisitor.cs
- SerialReceived.cs
- GPStream.cs
- ConfigUtil.cs
- SamlAuthorityBinding.cs
- ObjectDataSourceStatusEventArgs.cs
- SmtpException.cs
- RenderDataDrawingContext.cs
- TokenBasedSet.cs
- Point4D.cs
- Processor.cs
- X509Utils.cs
- DebugControllerThread.cs
- DesignerWebPartChrome.cs
- ReaderContextStackData.cs
- TypeFieldSchema.cs
- KeyProperty.cs
- RuleElement.cs
- SettingsPropertyIsReadOnlyException.cs
- StateRuntime.cs
- ChtmlLinkAdapter.cs
- ExceptionUtil.cs
- StylusPointPropertyUnit.cs
- XmlEventCache.cs
- XPathNodeIterator.cs
- DateTimeOffsetAdapter.cs
- ListBase.cs
- Translator.cs