Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- securestring.cs
- CollectionBase.cs
- HiddenField.cs
- ForceCopyBuildProvider.cs
- CultureTable.cs
- OdbcConnectionStringbuilder.cs
- DbConnectionFactory.cs
- XmlDataSource.cs
- CommonBehaviorsSection.cs
- EdgeModeValidation.cs
- LazyLoadBehavior.cs
- RowUpdatingEventArgs.cs
- SelectionItemProviderWrapper.cs
- DataGridViewSelectedRowCollection.cs
- AVElementHelper.cs
- IOThreadTimer.cs
- CultureInfo.cs
- LocalizationParserHooks.cs
- FacetDescriptionElement.cs
- KernelTypeValidation.cs
- BitStack.cs
- ServiceHostingEnvironment.cs
- DoubleLinkList.cs
- OperationCanceledException.cs
- GatewayIPAddressInformationCollection.cs
- DatagridviewDisplayedBandsData.cs
- FontUnitConverter.cs
- ProcessProtocolHandler.cs
- DataObjectCopyingEventArgs.cs
- X509Certificate.cs
- Transaction.cs
- DecryptedHeader.cs
- FreezableOperations.cs
- InteropAutomationProvider.cs
- TargetPerspective.cs
- SQLDecimal.cs
- SymmetricKey.cs
- IssuedTokensHeader.cs
- TextBoxView.cs
- FileRecordSequenceHelper.cs
- ProtocolException.cs
- OleServicesContext.cs
- OrderedEnumerableRowCollection.cs
- PropertyFilter.cs
- SeverityFilter.cs
- ColumnWidthChangedEvent.cs
- XmlCompatibilityReader.cs
- FixedStringLookup.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- WmlListAdapter.cs
- MemberBinding.cs
- XmlQueryCardinality.cs
- HttpDigestClientElement.cs
- NativeMethods.cs
- WebServiceMethodData.cs
- MexNamedPipeBindingElement.cs
- DesignerForm.cs
- UTF8Encoding.cs
- MetadataArtifactLoaderCompositeFile.cs
- BaseAppDomainProtocolHandler.cs
- OracleBinary.cs
- TraceEventCache.cs
- PrintPreviewControl.cs
- clipboard.cs
- MarkupCompilePass2.cs
- UserPreferenceChangingEventArgs.cs
- ValidationContext.cs
- JsonClassDataContract.cs
- Condition.cs
- SqlDataReaderSmi.cs
- connectionpool.cs
- WorkflowApplicationEventArgs.cs
- StrokeFIndices.cs
- SqlDataSourceSelectingEventArgs.cs
- SingleAnimation.cs
- SudsWriter.cs
- GridEntryCollection.cs
- ApplyTemplatesAction.cs
- XmlSchemaAttribute.cs
- OletxEnlistment.cs
- TemplateComponentConnector.cs
- TypeUtil.cs
- UnsafeNativeMethods.cs
- InternalDispatchObject.cs
- ReadOnlyAttribute.cs
- newinstructionaction.cs
- LogReserveAndAppendState.cs
- UIElement3DAutomationPeer.cs
- QueryIntervalOp.cs
- WebControlsSection.cs
- SecurityDocument.cs
- WebPartTransformer.cs
- WindowsEditBox.cs
- MailWebEventProvider.cs
- UpDownBaseDesigner.cs
- FixedStringLookup.cs
- BamlLocalizationDictionary.cs
- WindowsToolbarAsMenu.cs
- XsltCompileContext.cs
- CodeArrayCreateExpression.cs