Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ListViewItem.cs
- Speller.cs
- DataGridViewBindingCompleteEventArgs.cs
- Rect3DConverter.cs
- NaturalLanguageHyphenator.cs
- SelfIssuedAuthAsymmetricKey.cs
- ListBoxItemWrapperAutomationPeer.cs
- ToolStripSplitButton.cs
- TemplateKeyConverter.cs
- XappLauncher.cs
- XmlBinaryReader.cs
- HighContrastHelper.cs
- FileRecordSequenceHelper.cs
- CodeAssignStatement.cs
- WebBrowserEvent.cs
- CodeArgumentReferenceExpression.cs
- DataTransferEventArgs.cs
- ScrollItemProviderWrapper.cs
- ConnectorDragDropGlyph.cs
- ObjectDataSourceSelectingEventArgs.cs
- DataControlFieldCell.cs
- TextTreeText.cs
- AssemblyCache.cs
- ScriptBehaviorDescriptor.cs
- RegistryExceptionHelper.cs
- DbSourceParameterCollection.cs
- OdbcEnvironmentHandle.cs
- UserNamePasswordServiceCredential.cs
- PreservationFileWriter.cs
- DetailsViewInsertEventArgs.cs
- SoapTypeAttribute.cs
- CodeTypeConstructor.cs
- Column.cs
- DrawingBrush.cs
- storagemappingitemcollection.viewdictionary.cs
- DateTimeStorage.cs
- DesignerAttribute.cs
- DataMisalignedException.cs
- Parser.cs
- SqlLiftWhereClauses.cs
- FormsAuthenticationModule.cs
- HttpWrapper.cs
- UnorderedHashRepartitionStream.cs
- ObjectSecurityT.cs
- StrokeNodeData.cs
- RSAPKCS1SignatureFormatter.cs
- FontCollection.cs
- PartitionedStream.cs
- FrameworkElementFactory.cs
- CacheChildrenQuery.cs
- Button.cs
- SchemaImporterExtensionsSection.cs
- BitmapCache.cs
- ResXResourceReader.cs
- FileVersion.cs
- FontDriver.cs
- Wizard.cs
- XslCompiledTransform.cs
- NegatedCellConstant.cs
- CodeParameterDeclarationExpressionCollection.cs
- ActivityCodeDomSerializationManager.cs
- AuthenticatingEventArgs.cs
- WebPartManager.cs
- AmbientLight.cs
- ContainerCodeDomSerializer.cs
- TlsnegoTokenAuthenticator.cs
- RtfToXamlReader.cs
- mongolianshape.cs
- SystemTcpConnection.cs
- ContainerFilterService.cs
- TreeNodeStyleCollection.cs
- QueryReaderSettings.cs
- CategoryNameCollection.cs
- Matrix.cs
- ImportStoreException.cs
- WbmpConverter.cs
- ActiveDesignSurfaceEvent.cs
- UnSafeCharBuffer.cs
- FixedTextContainer.cs
- ComplexTypeEmitter.cs
- ErrorTableItemStyle.cs
- Memoizer.cs
- SqlServer2KCompatibilityAnnotation.cs
- WorkflowServiceAttributesTypeConverter.cs
- ComponentSerializationService.cs
- VerificationAttribute.cs
- URI.cs
- MsmqIntegrationMessageProperty.cs
- LicenseProviderAttribute.cs
- WebPartVerb.cs
- NumberFunctions.cs
- TypeRefElement.cs
- SpellCheck.cs
- SpeechSeg.cs
- IEnumerable.cs
- Timer.cs
- TemplateNodeContextMenu.cs
- Keyboard.cs
- PackageProperties.cs
- XmlText.cs