Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1305376 / ColorBlend.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Drawing.Drawing2D { using System.Diagnostics; using System; using System.Drawing; ////// /// Defines arrays of colors and positions used /// for interpolating color blending in a gradient. /// public sealed class ColorBlend { Color[] colors; float[] positions; ////// /// Initializes a new instance of the public ColorBlend() { colors = new Color[1]; positions = new float[1]; } ///class. /// /// /// public ColorBlend(int count) { colors = new Color[count]; positions = new float[count]; } ////// Initializes a new instance of the ///class with the specified number of /// colors and positions. /// /// /// Represents an array of colors. /// public Color[] Colors { get { return colors; } set { colors = value; } } ////// /// Represents the positions along a gradient /// line. /// public float[] Positions { get { return positions; } set { positions = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Drawing.Drawing2D { using System.Diagnostics; using System; using System.Drawing; ////// /// Defines arrays of colors and positions used /// for interpolating color blending in a gradient. /// public sealed class ColorBlend { Color[] colors; float[] positions; ////// /// Initializes a new instance of the public ColorBlend() { colors = new Color[1]; positions = new float[1]; } ///class. /// /// /// public ColorBlend(int count) { colors = new Color[count]; positions = new float[count]; } ////// Initializes a new instance of the ///class with the specified number of /// colors and positions. /// /// /// Represents an array of colors. /// public Color[] Colors { get { return colors; } set { colors = value; } } ////// /// Represents the positions along a gradient /// line. /// public float[] Positions { get { return positions; } set { positions = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ExternalException.cs
- Quad.cs
- ResXResourceReader.cs
- MatrixTransform3D.cs
- BaseCAMarshaler.cs
- BamlRecordReader.cs
- StickyNote.cs
- InputScope.cs
- ControlsConfig.cs
- GridViewHeaderRowPresenter.cs
- DropShadowBitmapEffect.cs
- Missing.cs
- IndicFontClient.cs
- _HeaderInfoTable.cs
- DataGridViewEditingControlShowingEventArgs.cs
- SystemColors.cs
- UnsafeNativeMethods.cs
- AnimationClockResource.cs
- TagPrefixInfo.cs
- CompositeCollection.cs
- CodeIterationStatement.cs
- StoragePropertyMapping.cs
- SingleObjectCollection.cs
- VScrollProperties.cs
- TranslateTransform.cs
- ClientRoleProvider.cs
- IntSecurity.cs
- PropertyReference.cs
- CommonProperties.cs
- SQLCharsStorage.cs
- EntitySqlQueryBuilder.cs
- ResXBuildProvider.cs
- ChannelPoolSettings.cs
- wgx_sdk_version.cs
- Point.cs
- AttachedPropertyBrowsableAttribute.cs
- WebPartTransformerAttribute.cs
- EntityProviderServices.cs
- ErrorLog.cs
- EntityDesignerUtils.cs
- NullableLongSumAggregationOperator.cs
- AppDomainGrammarProxy.cs
- NestedContainer.cs
- InstalledFontCollection.cs
- IgnorePropertiesAttribute.cs
- AutoGeneratedFieldProperties.cs
- FormsAuthenticationUserCollection.cs
- ParallelTimeline.cs
- BitmapEffectGeneralTransform.cs
- LinqToSqlWrapper.cs
- CommonDialog.cs
- StackSpiller.Generated.cs
- SqlCacheDependency.cs
- HtmlTernaryTree.cs
- Win32PrintDialog.cs
- ILGenerator.cs
- FileDialogCustomPlacesCollection.cs
- PersonalizationStateInfoCollection.cs
- ToolStripDropDownMenu.cs
- panel.cs
- ListParaClient.cs
- XPathBinder.cs
- ReachPageContentSerializer.cs
- DataSourceControlBuilder.cs
- CollectionConverter.cs
- VariantWrapper.cs
- CorrelationValidator.cs
- HtmlElementEventArgs.cs
- UserPreferenceChangingEventArgs.cs
- Rule.cs
- Schema.cs
- BooleanToVisibilityConverter.cs
- QueryOpcode.cs
- TagMapCollection.cs
- TimersDescriptionAttribute.cs
- UnauthorizedAccessException.cs
- SafeProcessHandle.cs
- RuntimeHandles.cs
- GuidConverter.cs
- FaultCode.cs
- ListViewInsertEventArgs.cs
- selecteditemcollection.cs
- BindingExpressionBase.cs
- COSERVERINFO.cs
- XmlNodeList.cs
- FontInfo.cs
- ExeConfigurationFileMap.cs
- ModelPropertyDescriptor.cs
- EndOfStreamException.cs
- WmlLinkAdapter.cs
- XmlMembersMapping.cs
- JsonQueryStringConverter.cs
- CommandConverter.cs
- XmlDataImplementation.cs
- SettingsPropertyWrongTypeException.cs
- CrossSiteScriptingValidation.cs
- X509CertificateClaimSet.cs
- MasterPage.cs
- VirtualizedCellInfoCollection.cs
- HelpKeywordAttribute.cs