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
- BinaryObjectReader.cs
- XmlSchemaAnnotated.cs
- IntegerValidatorAttribute.cs
- HighlightVisual.cs
- NGCSerializationManager.cs
- DetailsViewDeletedEventArgs.cs
- DbConnectionPool.cs
- HttpListenerResponse.cs
- CodeTypeReferenceCollection.cs
- WorkflowDefinitionDispenser.cs
- DataGridViewColumnCollection.cs
- Control.cs
- ListSortDescription.cs
- QueuePathDialog.cs
- PersonalizationDictionary.cs
- ClientSponsor.cs
- MimePart.cs
- DockAndAnchorLayout.cs
- ImageDrawing.cs
- RectAnimation.cs
- MexBindingBindingCollectionElement.cs
- MemberDomainMap.cs
- _NestedSingleAsyncResult.cs
- InvalidOleVariantTypeException.cs
- QuadraticBezierSegment.cs
- NameGenerator.cs
- WindowsGraphicsCacheManager.cs
- ColumnClickEvent.cs
- ConsumerConnectionPoint.cs
- XmlCharacterData.cs
- ExpressionConverter.cs
- ValidatorCompatibilityHelper.cs
- WindowsSecurityToken.cs
- EntityAdapter.cs
- Stack.cs
- TextModifierScope.cs
- ZipQueryOperator.cs
- PtsHost.cs
- Cursors.cs
- PartitionerQueryOperator.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- ViewManager.cs
- ChannelDemuxer.cs
- MonthCalendarDesigner.cs
- DataReaderContainer.cs
- DesignerRegionCollection.cs
- XmlUTF8TextReader.cs
- LayoutManager.cs
- IHttpResponseInternal.cs
- XmlQueryStaticData.cs
- UnauthorizedAccessException.cs
- ModuleElement.cs
- ListViewItemCollectionEditor.cs
- HtmlButton.cs
- SettingsContext.cs
- DeclarativeCatalogPartDesigner.cs
- FontStyleConverter.cs
- RuleSetDialog.cs
- CompilerState.cs
- OrCondition.cs
- RTTypeWrapper.cs
- XmlReflectionMember.cs
- ContextMarshalException.cs
- HtmlShim.cs
- AttributeSetAction.cs
- MachineKeyValidationConverter.cs
- AlignmentXValidation.cs
- UrlMapping.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- MetadataException.cs
- SoapIncludeAttribute.cs
- DragStartedEventArgs.cs
- SqlCachedBuffer.cs
- AttachedAnnotation.cs
- AuthorizationRuleCollection.cs
- MetaModel.cs
- DefaultIfEmptyQueryOperator.cs
- VideoDrawing.cs
- SpoolingTask.cs
- SecurityContext.cs
- EmbeddedMailObject.cs
- HTMLTagNameToTypeMapper.cs
- TemplateControlParser.cs
- WCFBuildProvider.cs
- ThreadSafeList.cs
- DataGridViewUtilities.cs
- ModelFactory.cs
- Message.cs
- ProtectedConfigurationProviderCollection.cs
- MgmtResManager.cs
- HostedTransportConfigurationManager.cs
- XMLUtil.cs
- WindowsServiceElement.cs
- QueryTaskGroupState.cs
- IIS7ConfigurationLoader.cs
- Win32Interop.cs
- CodeTypeParameterCollection.cs
- SamlAudienceRestrictionCondition.cs
- ContourSegment.cs
- XmlElement.cs