Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XmlSchemaExternal.cs
- DesigntimeLicenseContextSerializer.cs
- NameNode.cs
- ManifestSignedXml.cs
- TextStore.cs
- ListBindableAttribute.cs
- _ConnectStream.cs
- MarkupExtensionReturnTypeAttribute.cs
- TreeNodeCollection.cs
- CardSpaceSelector.cs
- SettingsSection.cs
- DataGridSortingEventArgs.cs
- DodSequenceMerge.cs
- HierarchicalDataSourceControl.cs
- FormViewUpdateEventArgs.cs
- TableLayoutStyleCollection.cs
- SiteMapProvider.cs
- TextCollapsingProperties.cs
- SessionStateUtil.cs
- ImageAttributes.cs
- EntityDataReader.cs
- XmlSchemaSimpleType.cs
- MemberJoinTreeNode.cs
- KeyTime.cs
- ClientEventManager.cs
- Vector3DAnimation.cs
- XMLDiffLoader.cs
- ExpressionNode.cs
- CompilerGlobalScopeAttribute.cs
- SortedList.cs
- GroupBox.cs
- TextTreeUndo.cs
- PluggableProtocol.cs
- PolyLineSegmentFigureLogic.cs
- InputMethodStateChangeEventArgs.cs
- ResourceKey.cs
- XmlDomTextWriter.cs
- DependencyPropertyKind.cs
- DataGridViewCellStyle.cs
- TransactedBatchContext.cs
- UrlPath.cs
- InstanceNormalEvent.cs
- NTAccount.cs
- InstanceNormalEvent.cs
- ScriptingJsonSerializationSection.cs
- GiveFeedbackEvent.cs
- CodeConstructor.cs
- BinHexDecoder.cs
- PathGradientBrush.cs
- DeviceContext2.cs
- CellQuery.cs
- Pens.cs
- RegexMatchCollection.cs
- ping.cs
- RelatedCurrencyManager.cs
- SymbolEqualComparer.cs
- SmiConnection.cs
- ParserContext.cs
- PlanCompiler.cs
- _RequestCacheProtocol.cs
- SoapSchemaExporter.cs
- EntityViewGenerationAttribute.cs
- SqlFunctionAttribute.cs
- PartitionerStatic.cs
- GraphicsContainer.cs
- XmlDataSourceNodeDescriptor.cs
- EditCommandColumn.cs
- RequestCache.cs
- CaseInsensitiveHashCodeProvider.cs
- RunInstallerAttribute.cs
- CatalogPartChrome.cs
- ImportCatalogPart.cs
- UnsafeNativeMethods.cs
- InternalBufferOverflowException.cs
- basevalidator.cs
- NetStream.cs
- PageAsyncTaskManager.cs
- ChtmlImageAdapter.cs
- CompositeKey.cs
- XmlAttributeCollection.cs
- SimpleTextLine.cs
- TextAutomationPeer.cs
- ClientFormsIdentity.cs
- UrlMapping.cs
- ArrayList.cs
- MatrixTransform3D.cs
- BaseDataListComponentEditor.cs
- CompilerCollection.cs
- WinEventTracker.cs
- NotifyInputEventArgs.cs
- _IPv6Address.cs
- DelegateTypeInfo.cs
- ObjectSpanRewriter.cs
- X509LogoTypeExtension.cs
- MergeFailedEvent.cs
- PropertyChangedEventManager.cs
- MergeExecutor.cs
- SafeProcessHandle.cs
- PackageDigitalSignatureManager.cs
- ArgumentsParser.cs