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
- XPathPatternBuilder.cs
- BulletedList.cs
- X509InitiatorCertificateServiceElement.cs
- SectionRecord.cs
- ArgIterator.cs
- DrawItemEvent.cs
- XmlSchemaSimpleTypeList.cs
- WrapperEqualityComparer.cs
- SerializationEventsCache.cs
- TaiwanCalendar.cs
- CallSite.cs
- XmlStreamNodeWriter.cs
- XmlNamespaceDeclarationsAttribute.cs
- AuthenticationModulesSection.cs
- ObjectView.cs
- Journal.cs
- MobileControlBuilder.cs
- PolicyImporterElement.cs
- ACL.cs
- ProviderMetadataCachedInformation.cs
- TextEndOfParagraph.cs
- TrustManagerMoreInformation.cs
- SpinLock.cs
- SqlDataSourceConfigureFilterForm.cs
- ProcessModelSection.cs
- CreateUserWizard.cs
- IChannel.cs
- LogRestartAreaEnumerator.cs
- CharStorage.cs
- CompilationRelaxations.cs
- CornerRadius.cs
- ToolStripControlHost.cs
- ApplicationFileCodeDomTreeGenerator.cs
- KeyValuePairs.cs
- TableLayoutCellPaintEventArgs.cs
- HotSpotCollection.cs
- FieldToken.cs
- LogStore.cs
- HwndMouseInputProvider.cs
- SystemWebExtensionsSectionGroup.cs
- EventData.cs
- VarRemapper.cs
- Font.cs
- WeakEventTable.cs
- MSHTMLHostUtil.cs
- BamlBinaryReader.cs
- StylusPointPropertyInfo.cs
- ObjectViewFactory.cs
- TransactionManager.cs
- SiteMapNodeItemEventArgs.cs
- PackagingUtilities.cs
- IItemProperties.cs
- StorageEntityContainerMapping.cs
- EventMappingSettings.cs
- XmlUtil.cs
- WebExceptionStatus.cs
- ResourceKey.cs
- NamespaceList.cs
- EventsTab.cs
- ListView.cs
- HwndHostAutomationPeer.cs
- CharacterString.cs
- WebPartMovingEventArgs.cs
- TextElement.cs
- PenLineCapValidation.cs
- AppearanceEditorPart.cs
- FileVersionInfo.cs
- BasicKeyConstraint.cs
- ArgumentException.cs
- BoundsDrawingContextWalker.cs
- XmlNullResolver.cs
- EncryptedType.cs
- WebServicesSection.cs
- SourceFileInfo.cs
- DesignerRegionCollection.cs
- XmlDataCollection.cs
- TraceData.cs
- ElasticEase.cs
- TextBoxRenderer.cs
- DataListItemEventArgs.cs
- DefaultAssemblyResolver.cs
- DirectionalLight.cs
- RegionData.cs
- SeekStoryboard.cs
- OpCopier.cs
- AccessibleObject.cs
- AsnEncodedData.cs
- WebPartAddingEventArgs.cs
- SqlClientWrapperSmiStreamChars.cs
- UnsafeCollabNativeMethods.cs
- DesignerRegionCollection.cs
- FieldDescriptor.cs
- PluralizationServiceUtil.cs
- COM2ColorConverter.cs
- ConnectionInterfaceCollection.cs
- Console.cs
- ExpressionVisitor.cs
- ResourceSet.cs
- Parser.cs
- FullTextLine.cs