Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- RegistryConfigurationProvider.cs
- ClientCultureInfo.cs
- StateDesigner.TransitionInfo.cs
- GregorianCalendarHelper.cs
- DictionaryBase.cs
- BackgroundWorker.cs
- EntityDataSourceStatementEditorForm.cs
- ScrollPattern.cs
- TraceEventCache.cs
- ListParagraph.cs
- DesignerVerbCollection.cs
- TypographyProperties.cs
- SoapElementAttribute.cs
- WmlLabelAdapter.cs
- MouseBinding.cs
- SiteMapPathDesigner.cs
- QilPatternFactory.cs
- TableLayoutStyle.cs
- WebPartTransformerCollection.cs
- MasterPageBuildProvider.cs
- EpmSyndicationContentSerializer.cs
- Funcletizer.cs
- TextTrailingWordEllipsis.cs
- SqlDataSourceConfigureSortForm.cs
- RuntimeConfigLKG.cs
- SafeBitVector32.cs
- RowUpdatedEventArgs.cs
- Ipv6Element.cs
- RepeaterItem.cs
- RecipientInfo.cs
- BoundField.cs
- DateTimeEditor.cs
- StateManager.cs
- SQLInt64Storage.cs
- TypeReference.cs
- XmlSchemaComplexContentRestriction.cs
- httpserverutility.cs
- UDPClient.cs
- AttachmentService.cs
- QueryAsyncResult.cs
- UniqueEventHelper.cs
- KeyValueConfigurationCollection.cs
- RsaKeyIdentifierClause.cs
- SyndicationItemFormatter.cs
- HttpApplicationFactory.cs
- Size.cs
- BinaryFormatterSinks.cs
- PrivilegeNotHeldException.cs
- Timer.cs
- HttpInputStream.cs
- Registry.cs
- FillBehavior.cs
- ComboBoxRenderer.cs
- AtlasWeb.Designer.cs
- BinaryObjectWriter.cs
- DataControlFieldCollection.cs
- BitmapEffectState.cs
- shaperfactoryquerycachekey.cs
- TextPointerBase.cs
- XmlTextAttribute.cs
- RuntimeEnvironment.cs
- ELinqQueryState.cs
- Propagator.JoinPropagator.cs
- DefaultSection.cs
- RequestTimeoutManager.cs
- Matrix3DConverter.cs
- NestPullup.cs
- ReflectPropertyDescriptor.cs
- ConfigurationManagerInternalFactory.cs
- PolicyLevel.cs
- DataGridViewElement.cs
- PageRequestManager.cs
- WindowsTreeView.cs
- RowToFieldTransformer.cs
- SimpleHandlerBuildProvider.cs
- ZipFileInfoCollection.cs
- ComplexTypeEmitter.cs
- TiffBitmapDecoder.cs
- SqlNotificationRequest.cs
- LinearGradientBrush.cs
- InternalConfigSettingsFactory.cs
- PageClientProxyGenerator.cs
- TypefaceMap.cs
- ImmutableDispatchRuntime.cs
- Focus.cs
- StringConcat.cs
- NavigateUrlConverter.cs
- CacheOutputQuery.cs
- AssemblyCache.cs
- PaintValueEventArgs.cs
- BitmapEffectGeneralTransform.cs
- LineProperties.cs
- DnsPermission.cs
- ConnectionPointCookie.cs
- EmptyStringExpandableObjectConverter.cs
- VirtualDirectoryMapping.cs
- GridViewHeaderRowPresenter.cs
- StaticResourceExtension.cs
- CodePageEncoding.cs
- BufferBuilder.cs