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
- TemplateBamlTreeBuilder.cs
- IDQuery.cs
- SerialPort.cs
- ServiceDeploymentInfo.cs
- CollectionBuilder.cs
- NeutralResourcesLanguageAttribute.cs
- SchemaImporterExtension.cs
- SystemEvents.cs
- TextDpi.cs
- MulticastNotSupportedException.cs
- CannotUnloadAppDomainException.cs
- Compiler.cs
- ResourceKey.cs
- ListViewDeletedEventArgs.cs
- ShutDownListener.cs
- DynamicResourceExtensionConverter.cs
- PrimitiveXmlSerializers.cs
- Walker.cs
- SystemIPAddressInformation.cs
- XmlSchemaAnnotated.cs
- ToolStripDropDownMenu.cs
- StylusPlugin.cs
- WebScriptMetadataMessage.cs
- CompModSwitches.cs
- SoapHeaderException.cs
- SharedConnectionListener.cs
- PolyBezierSegment.cs
- RoutingChannelExtension.cs
- PointIndependentAnimationStorage.cs
- ConcurrentQueue.cs
- RepeaterDesigner.cs
- HitTestParameters3D.cs
- ScriptControlManager.cs
- COAUTHIDENTITY.cs
- PasswordDeriveBytes.cs
- _NegoStream.cs
- TileModeValidation.cs
- TextEditor.cs
- PropertyPathConverter.cs
- SqlCommandBuilder.cs
- StringFreezingAttribute.cs
- URLAttribute.cs
- Boolean.cs
- CodeExporter.cs
- InputScopeConverter.cs
- HyperLink.cs
- AsyncResult.cs
- FileSystemWatcher.cs
- PerformanceCounterManager.cs
- WizardStepCollectionEditor.cs
- SByte.cs
- MsmqOutputChannel.cs
- UserPersonalizationStateInfo.cs
- ExtensionDataReader.cs
- ExtensionSimplifierMarkupObject.cs
- XmlExpressionDumper.cs
- TypeDescriptionProvider.cs
- counter.cs
- TraceContextEventArgs.cs
- TypeValidationEventArgs.cs
- Registry.cs
- AtomEntry.cs
- TypeSchema.cs
- XmlNodeChangedEventArgs.cs
- RemotingException.cs
- DSASignatureDeformatter.cs
- InvalidDataException.cs
- ResourceDescriptionAttribute.cs
- GetPageNumberCompletedEventArgs.cs
- ElementNotAvailableException.cs
- NavigationPropertyEmitter.cs
- Error.cs
- GAC.cs
- TextProperties.cs
- CacheAxisQuery.cs
- UIElementParaClient.cs
- HttpModulesSection.cs
- ClassDataContract.cs
- PrefixQName.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- TreeNode.cs
- WebPartMenuStyle.cs
- SignedInfo.cs
- SHA512.cs
- ReceiveContext.cs
- DoubleConverter.cs
- SequentialUshortCollection.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- MemoryFailPoint.cs
- MenuStrip.cs
- XmlTextEncoder.cs
- WebPartTransformer.cs
- TextFormatterContext.cs
- GlyphElement.cs
- NeutralResourcesLanguageAttribute.cs
- CapabilitiesState.cs
- XmlSchemaException.cs
- SimpleType.cs
- WindowAutomationPeer.cs
- DataRowCollection.cs