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
- HttpListenerContext.cs
- XmlMessageFormatter.cs
- ListViewCommandEventArgs.cs
- ExtenderControl.cs
- Documentation.cs
- StoreItemCollection.Loader.cs
- BCLDebug.cs
- LazyLoadBehavior.cs
- PrimaryKeyTypeConverter.cs
- Literal.cs
- SID.cs
- BooleanAnimationBase.cs
- NamespaceQuery.cs
- AppSecurityManager.cs
- TypeReference.cs
- TextBox.cs
- UpnEndpointIdentity.cs
- FormViewPagerRow.cs
- ResourceContainer.cs
- DrawListViewSubItemEventArgs.cs
- CompilationSection.cs
- ExtendLockAsyncResult.cs
- HttpHandlerAction.cs
- QilValidationVisitor.cs
- KeyProperty.cs
- Span.cs
- MethodAccessException.cs
- DoubleIndependentAnimationStorage.cs
- TextServicesCompartmentEventSink.cs
- ClientOptions.cs
- AlphaSortedEnumConverter.cs
- NativeCppClassAttribute.cs
- DockPatternIdentifiers.cs
- PolicyException.cs
- MultitargetingHelpers.cs
- ToolStripDropDownClosedEventArgs.cs
- DefaultValueConverter.cs
- OleDbPermission.cs
- ToolStripItemImageRenderEventArgs.cs
- ExpressionServices.cs
- SecUtil.cs
- ClientRuntimeConfig.cs
- MessageQueueKey.cs
- ISessionStateStore.cs
- SelectionProcessor.cs
- NameValueCollection.cs
- SafeArrayRankMismatchException.cs
- COAUTHINFO.cs
- ZipIOCentralDirectoryBlock.cs
- NumericUpDownAccelerationCollection.cs
- FontInfo.cs
- Regex.cs
- ButtonAutomationPeer.cs
- SystemEvents.cs
- XmlMessageFormatter.cs
- sqlcontext.cs
- ListBoxDesigner.cs
- TextFormatterContext.cs
- LambdaCompiler.Binary.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- ToolStripItemGlyph.cs
- XDRSchema.cs
- ZoomPercentageConverter.cs
- SpellerError.cs
- EnumerableWrapperWeakToStrong.cs
- WindowsContainer.cs
- ComponentDispatcher.cs
- HybridDictionary.cs
- SystemIcmpV4Statistics.cs
- ApplicationFileParser.cs
- BitArray.cs
- IIS7UserPrincipal.cs
- HtmlTableRow.cs
- ListBindingConverter.cs
- BrowserCapabilitiesCompiler.cs
- DrawingDrawingContext.cs
- DependencyObject.cs
- ObjectDataSourceView.cs
- ContextQuery.cs
- ButtonChrome.cs
- SQLInt32Storage.cs
- CompilerInfo.cs
- XmlBaseWriter.cs
- BindingCompleteEventArgs.cs
- DependencySource.cs
- _LocalDataStoreMgr.cs
- IndexerNameAttribute.cs
- Label.cs
- AdjustableArrowCap.cs
- BmpBitmapDecoder.cs
- SplashScreenNativeMethods.cs
- WMIInterop.cs
- LinqToSqlWrapper.cs
- ComponentTray.cs
- SubMenuStyleCollectionEditor.cs
- RedistVersionInfo.cs
- TrustManager.cs
- XmlTextReaderImplHelpers.cs
- CodeAttributeDeclarationCollection.cs
- PersistenceParticipant.cs