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
- ServiceDefaults.cs
- CodeGroup.cs
- LazyInitializer.cs
- DiscreteKeyFrames.cs
- DataGridItemEventArgs.cs
- SessionStateModule.cs
- DashStyles.cs
- LabelInfo.cs
- BindingContext.cs
- ImageConverter.cs
- AggregationMinMaxHelpers.cs
- RequiredAttributeAttribute.cs
- BlurEffect.cs
- DataRecordInternal.cs
- HtmlHead.cs
- CodeParameterDeclarationExpression.cs
- KeyPullup.cs
- ColorAnimation.cs
- ObjectSecurity.cs
- HttpWebRequestElement.cs
- MatrixUtil.cs
- DynamicEndpoint.cs
- InputReportEventArgs.cs
- TemplateKey.cs
- WorkflowNamespace.cs
- DataGridColumnCollection.cs
- HttpConfigurationContext.cs
- TextAutomationPeer.cs
- ReachPageContentCollectionSerializer.cs
- GraphicsPath.cs
- Win32Exception.cs
- ToolboxItem.cs
- ProtocolElementCollection.cs
- complextypematerializer.cs
- ApplyTemplatesAction.cs
- ServiceHttpHandlerFactory.cs
- UriTemplateVariablePathSegment.cs
- RawStylusActions.cs
- QilUnary.cs
- StatusStrip.cs
- ImageListStreamer.cs
- ViewBase.cs
- MsmqHostedTransportConfiguration.cs
- ZipFileInfo.cs
- EventEntry.cs
- WebPartConnectionsCancelVerb.cs
- DataPagerFieldCollection.cs
- Knowncolors.cs
- InputMethodStateChangeEventArgs.cs
- XmlParserContext.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ValidationErrorEventArgs.cs
- CompareInfo.cs
- Int32RectValueSerializer.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- SiteMapNode.cs
- ReadOnlyObservableCollection.cs
- ObjectViewFactory.cs
- HtmlInputCheckBox.cs
- DependencyPropertyConverter.cs
- x509store.cs
- DocumentApplicationDocumentViewer.cs
- CryptoConfig.cs
- HasCopySemanticsAttribute.cs
- ManagedFilter.cs
- StorageMappingItemCollection.cs
- Config.cs
- EnumerableValidator.cs
- OpCopier.cs
- IDQuery.cs
- WmfPlaceableFileHeader.cs
- XPathNavigatorKeyComparer.cs
- ReadContentAsBinaryHelper.cs
- basevalidator.cs
- BrowserCapabilitiesCompiler.cs
- PropertyDescriptorCollection.cs
- ApplicationCommands.cs
- TransformFinalBlockRequest.cs
- ModuleBuilder.cs
- TextDecorationUnitValidation.cs
- TextLineBreak.cs
- ListItemParagraph.cs
- CollectionConverter.cs
- BinaryFormatter.cs
- OperationBehaviorAttribute.cs
- XamlHostingSectionGroup.cs
- ManagedFilter.cs
- StrokeCollection2.cs
- ExpressionEditorSheet.cs
- ClientSettingsProvider.cs
- MimeAnyImporter.cs
- TextServicesDisplayAttributePropertyRanges.cs
- NamespaceTable.cs
- GuidelineCollection.cs
- _FixedSizeReader.cs
- AutomationFocusChangedEventArgs.cs
- DesignerCatalogPartChrome.cs
- Vector3dCollection.cs
- SettingsContext.cs
- TextClipboardData.cs