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
- UseAttributeSetsAction.cs
- WindowHideOrCloseTracker.cs
- ReadOnlyTernaryTree.cs
- MonthCalendar.cs
- PersonalizationStateQuery.cs
- TextTabProperties.cs
- ProcessModuleCollection.cs
- _IPv4Address.cs
- RemoteCryptoSignHashRequest.cs
- GradientStop.cs
- Application.cs
- OutOfProcStateClientManager.cs
- EntityCommandDefinition.cs
- AppDomainUnloadedException.cs
- SystemIPInterfaceStatistics.cs
- XPathQilFactory.cs
- TableProviderWrapper.cs
- Function.cs
- SqlDataSourceWizardForm.cs
- InstanceKeyNotReadyException.cs
- FontStyles.cs
- ResourceReader.cs
- CommonDialog.cs
- _CommandStream.cs
- DockProviderWrapper.cs
- Point3DIndependentAnimationStorage.cs
- TextFormatterContext.cs
- DesignerTransaction.cs
- BamlWriter.cs
- AsymmetricSignatureFormatter.cs
- ColorAnimationBase.cs
- SqlDataSource.cs
- TypeSystemHelpers.cs
- SessionMode.cs
- RegexRunnerFactory.cs
- AlignmentYValidation.cs
- AbstractExpressions.cs
- NativeMethods.cs
- AssemblyAttributesGoHere.cs
- RemotingConfiguration.cs
- QilGeneratorEnv.cs
- AnimationTimeline.cs
- InfoCardSymmetricCrypto.cs
- InternalException.cs
- PolicyLevel.cs
- InputScopeAttribute.cs
- LocationUpdates.cs
- DecimalAnimation.cs
- BitmapEffectCollection.cs
- CodeDirectionExpression.cs
- ExtractorMetadata.cs
- VariableDesigner.xaml.cs
- Hashtable.cs
- BinaryQueryOperator.cs
- IdnMapping.cs
- PageAdapter.cs
- TableLayoutCellPaintEventArgs.cs
- EntityDataSourceWizardForm.cs
- Win32Exception.cs
- ScrollBarAutomationPeer.cs
- TraceContext.cs
- CommunicationException.cs
- Int64Animation.cs
- PolicyLevel.cs
- PrintDialog.cs
- SessionState.cs
- RuntimeHelpers.cs
- PrivilegeNotHeldException.cs
- LifetimeServices.cs
- EventLogger.cs
- OciHandle.cs
- TogglePattern.cs
- LineBreakRecord.cs
- XPathCompiler.cs
- DtrList.cs
- MultipartIdentifier.cs
- AllowedAudienceUriElementCollection.cs
- altserialization.cs
- LassoHelper.cs
- TableLayoutStyle.cs
- ObjectItemCollection.cs
- DataGridColumnDropSeparator.cs
- WhileDesigner.cs
- BoolExpression.cs
- XmlTextReaderImplHelpers.cs
- XmlConvert.cs
- Color.cs
- FeatureSupport.cs
- RefType.cs
- TextTreeTextBlock.cs
- UIPermission.cs
- WindowsStartMenu.cs
- WindowsSysHeader.cs
- ServiceDurableInstance.cs
- SecurityState.cs
- Oid.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- XmlSchemaAppInfo.cs
- CharacterMetrics.cs
- RangeValidator.cs