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
- SchemaImporterExtensionsSection.cs
- WpfKnownType.cs
- LinkedList.cs
- ModelProperty.cs
- PathSegment.cs
- HwndSourceKeyboardInputSite.cs
- OleDbReferenceCollection.cs
- EditorBrowsableAttribute.cs
- FixedPageAutomationPeer.cs
- SimplePropertyEntry.cs
- DPCustomTypeDescriptor.cs
- BindingManagerDataErrorEventArgs.cs
- OutputCacheSettings.cs
- CustomDictionarySources.cs
- ConnectionManagementSection.cs
- ComponentDispatcher.cs
- RuntimeHandles.cs
- ProfilePropertyMetadata.cs
- Timer.cs
- WebColorConverter.cs
- SecurityTokenValidationException.cs
- DesignerOptionService.cs
- OciLobLocator.cs
- Rect3DConverter.cs
- ScriptControlManager.cs
- ByteConverter.cs
- DeferredElementTreeState.cs
- ResponseStream.cs
- MultilineStringConverter.cs
- SchemaMapping.cs
- ItemCheckEvent.cs
- DebugTrace.cs
- MenuItemStyle.cs
- TransactionManager.cs
- ButtonFlatAdapter.cs
- EDesignUtil.cs
- DeferredReference.cs
- LexicalChunk.cs
- IPHostEntry.cs
- IndexedGlyphRun.cs
- GeometryDrawing.cs
- CacheMemory.cs
- ReliableSessionElement.cs
- DataReaderContainer.cs
- BulletedListDesigner.cs
- filewebresponse.cs
- NullPackagingPolicy.cs
- DurationConverter.cs
- URLIdentityPermission.cs
- IPAddress.cs
- XPathNavigator.cs
- ColorAnimationBase.cs
- MenuCommand.cs
- TdsParserStateObject.cs
- BitmapCache.cs
- ObjectHelper.cs
- MeasurementDCInfo.cs
- DbConnectionPoolGroup.cs
- PointF.cs
- DebugHandleTracker.cs
- ListBoxItemWrapperAutomationPeer.cs
- LayoutInformation.cs
- EventNotify.cs
- FileClassifier.cs
- StandardOleMarshalObject.cs
- HostingEnvironmentSection.cs
- JsonReader.cs
- ClientBuildManager.cs
- MD5CryptoServiceProvider.cs
- DropDownButton.cs
- HttpStreamXmlDictionaryWriter.cs
- ControlAdapter.cs
- ViewGenResults.cs
- UnsafeNativeMethods.cs
- DataGrid.cs
- odbcmetadatafactory.cs
- WindowShowOrOpenTracker.cs
- EntityCommandCompilationException.cs
- ReflectPropertyDescriptor.cs
- FamilyMapCollection.cs
- PersistenceProvider.cs
- SingleStorage.cs
- RefreshPropertiesAttribute.cs
- IList.cs
- DiagnosticsConfiguration.cs
- AuthenticateEventArgs.cs
- RequestQueue.cs
- ComEventsHelper.cs
- IMembershipProvider.cs
- HTMLTextWriter.cs
- documentsequencetextview.cs
- LoaderAllocator.cs
- ParallelEnumerableWrapper.cs
- PresentationTraceSources.cs
- HtmlInputFile.cs
- IdleTimeoutMonitor.cs
- SocketElement.cs
- DataTemplateSelector.cs
- ResourceSet.cs
- EasingQuaternionKeyFrame.cs