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
- XPathParser.cs
- Keyboard.cs
- CodeEntryPointMethod.cs
- IisTraceListener.cs
- BaseComponentEditor.cs
- Bidi.cs
- FontFamilyValueSerializer.cs
- PathFigureCollection.cs
- VisualTreeUtils.cs
- ExpressionBindings.cs
- HtmlTableRowCollection.cs
- ToolBarButtonDesigner.cs
- HijriCalendar.cs
- View.cs
- AxisAngleRotation3D.cs
- XmlStreamStore.cs
- TraversalRequest.cs
- InternalSendMessage.cs
- SoapMessage.cs
- QilInvokeEarlyBound.cs
- OciEnlistContext.cs
- EdmSchemaAttribute.cs
- SrgsRulesCollection.cs
- AppDomainUnloadedException.cs
- FileVersionInfo.cs
- TreeNodeEventArgs.cs
- GeneralTransformCollection.cs
- RawStylusInput.cs
- ResourceManager.cs
- storepermission.cs
- WebBodyFormatMessageProperty.cs
- ConvertTextFrag.cs
- SecurityTokenAuthenticator.cs
- DataObject.cs
- Bezier.cs
- QueryContinueDragEvent.cs
- LinqDataSourceSelectEventArgs.cs
- _SSPISessionCache.cs
- LoginUtil.cs
- _SslStream.cs
- DataSourceCache.cs
- TableItemStyle.cs
- WebConfigurationHost.cs
- Attributes.cs
- CheckBoxFlatAdapter.cs
- PageHandlerFactory.cs
- CallTemplateAction.cs
- RightsManagementPermission.cs
- ContextMenu.cs
- MetricEntry.cs
- XmlAnyElementAttribute.cs
- Wizard.cs
- SQLInt64Storage.cs
- ButtonBase.cs
- SettingsContext.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- SessionSwitchEventArgs.cs
- IDQuery.cs
- COSERVERINFO.cs
- TemplateApplicationHelper.cs
- WebConfigurationManager.cs
- MetafileHeaderWmf.cs
- TagPrefixCollection.cs
- HeaderedItemsControl.cs
- XDRSchema.cs
- MimeFormImporter.cs
- AutoSizeToolBoxItem.cs
- IdentitySection.cs
- TextRangeEditLists.cs
- DefaultWorkflowSchedulerService.cs
- EnumValAlphaComparer.cs
- ElementNotEnabledException.cs
- ListItemCollection.cs
- Html32TextWriter.cs
- TreeSet.cs
- ScriptModule.cs
- ObjectListGeneralPage.cs
- GenericTypeParameterBuilder.cs
- SafeHGlobalHandleCritical.cs
- DataGridViewRowEventArgs.cs
- ParamArrayAttribute.cs
- VirtualizedCellInfoCollection.cs
- PathBox.cs
- EditableTreeList.cs
- ObjectQueryState.cs
- SamlAudienceRestrictionCondition.cs
- Matrix3D.cs
- CompiledQuery.cs
- Logging.cs
- DataObject.cs
- TiffBitmapEncoder.cs
- Stroke.cs
- ZipIOExtraField.cs
- ShutDownListener.cs
- XmlValueConverter.cs
- Hashtable.cs
- FixedSOMLineCollection.cs
- LinearGradientBrush.cs
- BitmapSourceSafeMILHandle.cs
- path.cs