Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RenderingEventArgs.cs
- DataSpaceManager.cs
- HtmlControlPersistable.cs
- ReturnEventArgs.cs
- SmtpSection.cs
- DllHostInitializer.cs
- UriParserTemplates.cs
- Roles.cs
- UserControlDocumentDesigner.cs
- TrackingServices.cs
- WebPartHeaderCloseVerb.cs
- InsufficientMemoryException.cs
- CompilerTypeWithParams.cs
- SerializerWriterEventHandlers.cs
- ProviderConnectionPoint.cs
- ProxyWebPart.cs
- AssertHelper.cs
- AutomationAttributeInfo.cs
- Vector3DAnimationUsingKeyFrames.cs
- AttributedMetaModel.cs
- OleDbCommandBuilder.cs
- CacheRequest.cs
- SoapEnumAttribute.cs
- Transform3DGroup.cs
- Resources.Designer.cs
- SchemaElementLookUpTableEnumerator.cs
- InstanceKeyCollisionException.cs
- RepeaterCommandEventArgs.cs
- HttpContext.cs
- TextContainer.cs
- FrameworkContentElementAutomationPeer.cs
- ServiceBuildProvider.cs
- CodeTypeOfExpression.cs
- DirectoryRootQuery.cs
- Addressing.cs
- TreeNodeCollection.cs
- StaticExtension.cs
- Marshal.cs
- TemplateBindingExpression.cs
- JavaScriptObjectDeserializer.cs
- ByteStack.cs
- ScriptBehaviorDescriptor.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- SizeFConverter.cs
- CookielessHelper.cs
- GridViewRowPresenter.cs
- ResourcePart.cs
- Scalars.cs
- SiteMapNodeCollection.cs
- FastPropertyAccessor.cs
- SingleKeyFrameCollection.cs
- PointAnimationUsingKeyFrames.cs
- Int64Storage.cs
- XmlSerializationWriter.cs
- ClipboardData.cs
- FormView.cs
- HandlerWithFactory.cs
- VsPropertyGrid.cs
- SystemNetHelpers.cs
- OutputCacheModule.cs
- BindToObject.cs
- VarRefManager.cs
- Rss20ItemFormatter.cs
- WindowHideOrCloseTracker.cs
- Console.cs
- InternalConfigHost.cs
- PinnedBufferMemoryStream.cs
- ObjectStateManager.cs
- ModelUIElement3D.cs
- StringKeyFrameCollection.cs
- MessageAction.cs
- StyleSelector.cs
- NavigationExpr.cs
- RowTypePropertyElement.cs
- TableLayoutPanel.cs
- TaskExceptionHolder.cs
- SamlDelegatingWriter.cs
- Proxy.cs
- Border.cs
- CapabilitiesUse.cs
- XmlDownloadManager.cs
- GridViewRowPresenterBase.cs
- SortExpressionBuilder.cs
- ModuleConfigurationInfo.cs
- OracleCommandSet.cs
- SQLMoneyStorage.cs
- CodeDomSerializerBase.cs
- RegisteredArrayDeclaration.cs
- Missing.cs
- FixedPageStructure.cs
- FixedHighlight.cs
- x509utils.cs
- HighlightOverlayGlyph.cs
- SqlRowUpdatedEvent.cs
- OracleTimeSpan.cs
- ScrollItemProviderWrapper.cs
- GeneratedContractType.cs
- ReadOnlyActivityGlyph.cs
- Tokenizer.cs
- LogSwitch.cs