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
- SpeakCompletedEventArgs.cs
- ParagraphResult.cs
- FormView.cs
- LineUtil.cs
- DocumentReferenceCollection.cs
- DbSourceParameterCollection.cs
- HwndSourceKeyboardInputSite.cs
- ErrorTableItemStyle.cs
- RedBlackList.cs
- BigInt.cs
- VirtualPathData.cs
- BindingParameterCollection.cs
- AmbientProperties.cs
- NotificationContext.cs
- ThicknessKeyFrameCollection.cs
- _ServiceNameStore.cs
- DefaultEvaluationContext.cs
- CheckBoxRenderer.cs
- LookupNode.cs
- DetailsViewDesigner.cs
- XPathChildIterator.cs
- XslTransformFileEditor.cs
- RootAction.cs
- SkewTransform.cs
- SmiConnection.cs
- StrongNameIdentityPermission.cs
- SqlConnection.cs
- StreamHelper.cs
- ProxyWebPart.cs
- NullPackagingPolicy.cs
- ComponentChangedEvent.cs
- SoundPlayerAction.cs
- LabelTarget.cs
- WebResourceAttribute.cs
- TextModifierScope.cs
- DropTarget.cs
- Geometry.cs
- ProcessStartInfo.cs
- TransactionChannel.cs
- ThemeableAttribute.cs
- SqlDuplicator.cs
- TreeNodeConverter.cs
- SessionSymmetricTransportSecurityProtocolFactory.cs
- Translator.cs
- CustomAttributeBuilder.cs
- AbsoluteQuery.cs
- ProvidePropertyAttribute.cs
- MetaModel.cs
- HtmlDocument.cs
- XmlNamespaceMappingCollection.cs
- PenContext.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- SQLInt64Storage.cs
- TextElementAutomationPeer.cs
- GraphicsPathIterator.cs
- dbenumerator.cs
- WeakReferenceList.cs
- MDIWindowDialog.cs
- SoapCommonClasses.cs
- ToolStripTextBox.cs
- ParserHooks.cs
- SecurityVerifiedMessage.cs
- SubMenuStyle.cs
- TraceUtility.cs
- PathFigureCollection.cs
- StateMachineAction.cs
- AssemblyHash.cs
- ToolStripContentPanelRenderEventArgs.cs
- RootBrowserWindowAutomationPeer.cs
- RichTextBox.cs
- RemotingServices.cs
- RtfControls.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- XmlHelper.cs
- GestureRecognizer.cs
- GetPolicyDetailsRequest.cs
- ObsoleteAttribute.cs
- DataFormats.cs
- ListBox.cs
- MenuAdapter.cs
- HttpCacheVaryByContentEncodings.cs
- AnnotationObservableCollection.cs
- DoubleKeyFrameCollection.cs
- BitSet.cs
- HttpHandlersSection.cs
- HelpProvider.cs
- DetailsViewRow.cs
- OdbcRowUpdatingEvent.cs
- StreamResourceInfo.cs
- RIPEMD160Managed.cs
- _LocalDataStore.cs
- FixedSOMPageElement.cs
- Point3DIndependentAnimationStorage.cs
- EntityDataSourceContainerNameItem.cs
- OleDbMetaDataFactory.cs
- BufferModesCollection.cs
- UTF8Encoding.cs
- NetTcpBinding.cs
- GenericWebPart.cs
- SqlRecordBuffer.cs