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
- AnnotationResourceChangedEventArgs.cs
- Collection.cs
- XmlSerializerSection.cs
- HtmlAnchor.cs
- PersianCalendar.cs
- XmlSubtreeReader.cs
- NetSectionGroup.cs
- EventMetadata.cs
- CircleHotSpot.cs
- DefaultProxySection.cs
- RouteCollection.cs
- NameValueSectionHandler.cs
- IdleTimeoutMonitor.cs
- DNS.cs
- DescendantOverDescendantQuery.cs
- ElementsClipboardData.cs
- LeafCellTreeNode.cs
- ClientTargetCollection.cs
- TcpSocketManager.cs
- DependencyObjectPropertyDescriptor.cs
- CaseInsensitiveHashCodeProvider.cs
- CrossSiteScriptingValidation.cs
- TCPListener.cs
- ObjectStorage.cs
- DataObjectCopyingEventArgs.cs
- HwndTarget.cs
- X509Extension.cs
- DispatcherExceptionEventArgs.cs
- MeasureItemEvent.cs
- ReturnType.cs
- DocumentApplicationJournalEntry.cs
- TreeSet.cs
- ReferenceConverter.cs
- MultipartIdentifier.cs
- ByteStream.cs
- UndirectedGraph.cs
- Slider.cs
- UInt16.cs
- PixelShader.cs
- util.cs
- PolyLineSegment.cs
- StickyNoteHelper.cs
- CursorInteropHelper.cs
- ConvertEvent.cs
- BufferedReadStream.cs
- ChannelManager.cs
- StyleBamlRecordReader.cs
- ConnectionsZone.cs
- IPAddressCollection.cs
- DataObjectPastingEventArgs.cs
- EdmPropertyAttribute.cs
- CompositeActivityCodeGenerator.cs
- ProfileManager.cs
- HttpDigestClientElement.cs
- ProfileService.cs
- ScrollBarAutomationPeer.cs
- DomainConstraint.cs
- ClientType.cs
- SettingsPropertyValueCollection.cs
- SmiMetaData.cs
- OrderedParallelQuery.cs
- IApplicationTrustManager.cs
- UnknownBitmapDecoder.cs
- httpapplicationstate.cs
- XmlRootAttribute.cs
- ControlBuilder.cs
- LayoutEngine.cs
- Compiler.cs
- uribuilder.cs
- DotExpr.cs
- smtpconnection.cs
- DefaultTraceListener.cs
- EnumerableRowCollection.cs
- HtmlDocument.cs
- InvokePattern.cs
- WebPartDescriptionCollection.cs
- WebPartActionVerb.cs
- GridViewSelectEventArgs.cs
- basecomparevalidator.cs
- HttpPostProtocolImporter.cs
- XPathAncestorIterator.cs
- CfgArc.cs
- FlowLayoutSettings.cs
- InheritablePropertyChangeInfo.cs
- ConnectionsZone.cs
- ProfessionalColors.cs
- Listbox.cs
- FusionWrap.cs
- CodeParameterDeclarationExpression.cs
- IsolatedStorageFilePermission.cs
- ButtonDesigner.cs
- recordstate.cs
- GlobalEventManager.cs
- CodeTypeReferenceCollection.cs
- DescendentsWalker.cs
- ExchangeUtilities.cs
- XmlDigitalSignatureProcessor.cs
- BindingValueChangedEventArgs.cs
- ResourcePool.cs
- FunctionDescription.cs