Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / GradientStop.cs / 1305600 / 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 : [....] - 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 : [....] - 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
- SetStateDesigner.cs
- SoapProtocolReflector.cs
- Int64Converter.cs
- XmlSchemaFacet.cs
- ElementProxy.cs
- PropertyGroupDescription.cs
- QuaternionRotation3D.cs
- X509Certificate.cs
- Serializer.cs
- coordinator.cs
- ContentHostHelper.cs
- ConsoleKeyInfo.cs
- ScaleTransform3D.cs
- SimpleRecyclingCache.cs
- EmbossBitmapEffect.cs
- ScriptManagerProxy.cs
- SqlUserDefinedAggregateAttribute.cs
- OutputCacheSettingsSection.cs
- ListViewSortEventArgs.cs
- SqlServices.cs
- ResourceAssociationType.cs
- PageContent.cs
- DateTimeFormatInfo.cs
- EmptyElement.cs
- ControlValuePropertyAttribute.cs
- RTLAwareMessageBox.cs
- BuildManager.cs
- DocumentPageHost.cs
- MenuScrollingVisibilityConverter.cs
- WebPartEditVerb.cs
- MimeTypeMapper.cs
- PaperSource.cs
- MouseOverProperty.cs
- ProfileProvider.cs
- MatrixAnimationBase.cs
- ReadingWritingEntityEventArgs.cs
- XmlObjectSerializerReadContextComplexJson.cs
- EntityDescriptor.cs
- DefaultProxySection.cs
- HttpWebResponse.cs
- TypeBuilder.cs
- RetriableClipboard.cs
- Convert.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- DefaultShape.cs
- MergeFailedEvent.cs
- StringBuilder.cs
- MenuItemBindingCollection.cs
- HttpCacheVaryByContentEncodings.cs
- Component.cs
- PathSegment.cs
- XmlChoiceIdentifierAttribute.cs
- Quaternion.cs
- SourceInterpreter.cs
- IntPtr.cs
- PrimitiveRenderer.cs
- TextTrailingWordEllipsis.cs
- ContractReference.cs
- SessionStateModule.cs
- AttributeXamlType.cs
- ViewCellRelation.cs
- TargetConverter.cs
- ThreadStateException.cs
- DataGridViewRowEventArgs.cs
- RepeaterCommandEventArgs.cs
- CreateParams.cs
- PathSegmentCollection.cs
- Scene3D.cs
- TypeSystemProvider.cs
- InitializationEventAttribute.cs
- FolderNameEditor.cs
- DbConnectionOptions.cs
- HandleValueEditor.cs
- RouteItem.cs
- DrawingBrush.cs
- Emitter.cs
- DataBinding.cs
- JoinTreeNode.cs
- Hashtable.cs
- FlowchartStart.xaml.cs
- EmbeddedObject.cs
- IisTraceListener.cs
- UseAttributeSetsAction.cs
- TabControlEvent.cs
- TextBreakpoint.cs
- RichTextBox.cs
- JpegBitmapEncoder.cs
- DesignerToolStripControlHost.cs
- StatusBar.cs
- XmlIncludeAttribute.cs
- tooltip.cs
- Constants.cs
- User.cs
- ComponentEvent.cs
- datacache.cs
- DESCryptoServiceProvider.cs
- SafeRightsManagementSessionHandle.cs
- RuntimeCompatibilityAttribute.cs
- EventProviderWriter.cs
- AutomationElementCollection.cs