Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- MaxSessionCountExceededException.cs
- DataSourceControl.cs
- ImageButton.cs
- FixedSOMTable.cs
- StrokeNodeOperations.cs
- DebugInfoGenerator.cs
- SmtpException.cs
- ExtendLockCommand.cs
- RequestCacheValidator.cs
- DbInsertCommandTree.cs
- LinkedList.cs
- WebPartConnectionsCancelEventArgs.cs
- CompiledIdentityConstraint.cs
- WorkflowRuntimeSection.cs
- FilteredReadOnlyMetadataCollection.cs
- HorizontalAlignConverter.cs
- ImmComposition.cs
- StylusPointCollection.cs
- CodeTypeDeclarationCollection.cs
- SerialPinChanges.cs
- ConfigsHelper.cs
- ImageListStreamer.cs
- InternalResources.cs
- TemplatedWizardStep.cs
- Zone.cs
- SecurityMessageProperty.cs
- SqlExpander.cs
- Constraint.cs
- _PooledStream.cs
- AppDomainAttributes.cs
- CornerRadiusConverter.cs
- filewebresponse.cs
- ObjectDataSourceStatusEventArgs.cs
- FormatException.cs
- MethodCallTranslator.cs
- WindowsToolbarAsMenu.cs
- VirtualDirectoryMapping.cs
- GridViewCommandEventArgs.cs
- BlobPersonalizationState.cs
- CollaborationHelperFunctions.cs
- CompressStream.cs
- Ops.cs
- HttpChannelHelpers.cs
- MenuItemBindingCollection.cs
- AsymmetricKeyExchangeFormatter.cs
- x509store.cs
- ServerValidateEventArgs.cs
- SizeAnimationClockResource.cs
- EmptyTextWriter.cs
- InvalidCommandTreeException.cs
- TrustLevel.cs
- TableRowGroup.cs
- EntityContainer.cs
- CollectionConverter.cs
- MatrixConverter.cs
- ComplexObject.cs
- ResourceWriter.cs
- RequestNavigateEventArgs.cs
- HuffmanTree.cs
- TemplateManager.cs
- TreeView.cs
- graph.cs
- EncodingNLS.cs
- SortedDictionary.cs
- XsdCachingReader.cs
- Bezier.cs
- CompositeKey.cs
- SyndicationSerializer.cs
- InputLanguage.cs
- _CommandStream.cs
- UIAgentAsyncBeginRequest.cs
- ClassImporter.cs
- MasterPageParser.cs
- DisplayInformation.cs
- GetIndexBinder.cs
- EntityDataSourceChangedEventArgs.cs
- IPPacketInformation.cs
- DataGridViewTextBoxCell.cs
- DispatcherExceptionFilterEventArgs.cs
- ToolStrip.cs
- WorkflowServiceAttributesTypeConverter.cs
- DependencyObject.cs
- FixedSOMLineCollection.cs
- ReliabilityContractAttribute.cs
- FramingChannels.cs
- oledbmetadatacollectionnames.cs
- DefinitionBase.cs
- Rotation3DAnimation.cs
- Storyboard.cs
- SrgsNameValueTag.cs
- FormViewRow.cs
- AutomationPeer.cs
- mediaeventargs.cs
- PeerTransportListenAddressConverter.cs
- CheckBox.cs
- SQLDateTimeStorage.cs
- StringFreezingAttribute.cs
- GB18030Encoding.cs
- WindowClosedEventArgs.cs
- TaskFileService.cs