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
- EncoderParameter.cs
- OleDbErrorCollection.cs
- CachingHintValidation.cs
- DataServiceHostFactory.cs
- RetriableClipboard.cs
- AesManaged.cs
- SizeKeyFrameCollection.cs
- TableLayoutStyle.cs
- ConsoleCancelEventArgs.cs
- Group.cs
- XPathBinder.cs
- InheritanceAttribute.cs
- listitem.cs
- ToolStripItemTextRenderEventArgs.cs
- OleDbParameter.cs
- TableItemPatternIdentifiers.cs
- MessageContractExporter.cs
- XmlMembersMapping.cs
- TypeConverterHelper.cs
- IdentityModelDictionary.cs
- ExtendedTransformFactory.cs
- LayoutTableCell.cs
- BindingExpression.cs
- VirtualizedItemProviderWrapper.cs
- HttpServerVarsCollection.cs
- Sentence.cs
- PasswordBox.cs
- DecimalConverter.cs
- ModulesEntry.cs
- SqlSelectStatement.cs
- _NegoStream.cs
- TextEffect.cs
- Slider.cs
- PersonalizationDictionary.cs
- Privilege.cs
- RoleService.cs
- SimpleModelProvider.cs
- PeerContact.cs
- HtmlInputButton.cs
- ServiceProviders.cs
- WebEventTraceProvider.cs
- SchemaMapping.cs
- ThicknessAnimation.cs
- HwndProxyElementProvider.cs
- SqlFormatter.cs
- QueryExpr.cs
- TypedAsyncResult.cs
- ResourceContainer.cs
- RelationshipDetailsCollection.cs
- safemediahandle.cs
- ExitEventArgs.cs
- RegexGroup.cs
- WebDisplayNameAttribute.cs
- CompilerState.cs
- PlaceHolder.cs
- InternalConfigHost.cs
- SelectedPathEditor.cs
- Encoder.cs
- TaskFileService.cs
- RowUpdatingEventArgs.cs
- SqlParameterCollection.cs
- OpenTypeLayout.cs
- SQLString.cs
- ExitEventArgs.cs
- ContentPresenter.cs
- ToolStripDropTargetManager.cs
- Parser.cs
- VerificationException.cs
- LogArchiveSnapshot.cs
- EncoderBestFitFallback.cs
- WithParamAction.cs
- XdrBuilder.cs
- XmlDataProvider.cs
- ApplicationDirectory.cs
- ReadonlyMessageFilter.cs
- RulePatternOps.cs
- URL.cs
- DocumentGridContextMenu.cs
- BinaryMethodMessage.cs
- UIElementHelper.cs
- RichTextBox.cs
- RelatedView.cs
- PostBackOptions.cs
- _NestedSingleAsyncResult.cs
- VisualBasicDesignerHelper.cs
- DelimitedListTraceListener.cs
- ResourceReferenceExpression.cs
- WindowsRichEditRange.cs
- MouseOverProperty.cs
- QilChoice.cs
- CompositionTarget.cs
- StrokeCollection2.cs
- PageStatePersister.cs
- transactioncontext.cs
- TextClipboardData.cs
- ObjectDataSourceEventArgs.cs
- SoapEnumAttribute.cs
- ReadOnlyDictionary.cs
- CleanUpVirtualizedItemEventArgs.cs
- CollectionViewProxy.cs