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
- TableLayoutPanelCodeDomSerializer.cs
- DesignerTextBoxAdapter.cs
- DBSchemaTable.cs
- DefaultEvaluationContext.cs
- CompilerParameters.cs
- ParserOptions.cs
- Directory.cs
- UniqueTransportManagerRegistration.cs
- SocketSettings.cs
- RadialGradientBrush.cs
- Underline.cs
- EdmProviderManifest.cs
- ZipIORawDataFileBlock.cs
- PointHitTestResult.cs
- PrintPreviewDialog.cs
- ValidatorCompatibilityHelper.cs
- WindowsGrip.cs
- PhoneCallDesigner.cs
- GlobalItem.cs
- XMLSyntaxException.cs
- HashMembershipCondition.cs
- XmlParserContext.cs
- XmlElement.cs
- CheckBoxBaseAdapter.cs
- TemplateComponentConnector.cs
- Keywords.cs
- ContentTypeSettingClientMessageFormatter.cs
- ByteStream.cs
- AlphabetConverter.cs
- Attachment.cs
- LinkLabel.cs
- CodeDOMUtility.cs
- ListArgumentProvider.cs
- ProtectedConfigurationSection.cs
- TaiwanCalendar.cs
- BorderSidesEditor.cs
- Screen.cs
- EventLogEntryCollection.cs
- BitmapEffectrendercontext.cs
- OperationContractGenerationContext.cs
- SparseMemoryStream.cs
- WorkflowMarkupSerializationProvider.cs
- HtmlAnchor.cs
- MetadataItemEmitter.cs
- EncryptedReference.cs
- FileLoadException.cs
- DocumentReferenceCollection.cs
- SourceItem.cs
- Rect3DValueSerializer.cs
- ThreadAbortException.cs
- SetterBase.cs
- AsymmetricSignatureFormatter.cs
- PropertyContainer.cs
- NavigationPropertyEmitter.cs
- CalendarDataBindingHandler.cs
- HostingPreferredMapPath.cs
- LinkedList.cs
- WindowsListViewGroupSubsetLink.cs
- FlowDocumentFormatter.cs
- _LazyAsyncResult.cs
- DbQueryCommandTree.cs
- SurrogateEncoder.cs
- CngKey.cs
- ForwardPositionQuery.cs
- Registry.cs
- ExtensionMethods.cs
- Window.cs
- CryptoApi.cs
- SerializationInfoEnumerator.cs
- Quaternion.cs
- PropertyItem.cs
- OdbcConnectionFactory.cs
- ContractMapping.cs
- EditorAttribute.cs
- ClockGroup.cs
- SecureEnvironment.cs
- ScriptHandlerFactory.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- ConditionalAttribute.cs
- PropertyOverridesTypeEditor.cs
- SpecialFolderEnumConverter.cs
- NativeCompoundFileAPIs.cs
- EntityDataSourceView.cs
- Environment.cs
- InstanceView.cs
- ExpressionNode.cs
- InvalidAsynchronousStateException.cs
- SerializationAttributes.cs
- _SingleItemRequestCache.cs
- RSAPKCS1SignatureDeformatter.cs
- ExtendedProperty.cs
- ZipIOCentralDirectoryBlock.cs
- CodeEventReferenceExpression.cs
- DataGridRowDetailsEventArgs.cs
- WebPartManager.cs
- PageRequestManager.cs
- Cursors.cs
- DispatchProxy.cs
- EtwTrace.cs
- XmlEncoding.cs