Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1 / 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
- File.cs
- SelectedGridItemChangedEvent.cs
- CheckBoxRenderer.cs
- OpCellTreeNode.cs
- diagnosticsswitches.cs
- HttpModule.cs
- ApplicationException.cs
- BCryptNative.cs
- Trigger.cs
- BitArray.cs
- SafeUserTokenHandle.cs
- LocalizationComments.cs
- CellLabel.cs
- EntityDesignerBuildProvider.cs
- WindowsListViewSubItem.cs
- BindUriHelper.cs
- TemplateControlBuildProvider.cs
- SamlDoNotCacheCondition.cs
- ToolBarButtonClickEvent.cs
- DetailsViewCommandEventArgs.cs
- DbConnectionFactory.cs
- DelayedRegex.cs
- GridViewRowPresenterBase.cs
- OpenTypeCommon.cs
- MenuItem.cs
- PaperSource.cs
- NegotiateStream.cs
- ConnectionPoolRegistry.cs
- SqlProfileProvider.cs
- ClientApiGenerator.cs
- ConstantSlot.cs
- X509Utils.cs
- Visual.cs
- FamilyTypeface.cs
- ObfuscationAttribute.cs
- JsonUriDataContract.cs
- XmlParserContext.cs
- HtmlGenericControl.cs
- InvalidPrinterException.cs
- RectIndependentAnimationStorage.cs
- Completion.cs
- UndoUnit.cs
- BitmapFrameEncode.cs
- GcHandle.cs
- Baml2006ReaderSettings.cs
- InkSerializer.cs
- JavaScriptString.cs
- Assert.cs
- FilterQueryOptionExpression.cs
- RtfControls.cs
- BufferedStream.cs
- DockAndAnchorLayout.cs
- SoundPlayerAction.cs
- XmlSerializableWriter.cs
- DiscoveryCallbackBehavior.cs
- SchemaNamespaceManager.cs
- OrderablePartitioner.cs
- DetailsViewPagerRow.cs
- GuidConverter.cs
- TextEditorCharacters.cs
- NativeWindow.cs
- CrossSiteScriptingValidation.cs
- ActivationArguments.cs
- EventManager.cs
- XPathDocumentBuilder.cs
- Shape.cs
- DataGridViewButtonCell.cs
- ListItemConverter.cs
- Normalization.cs
- WebDescriptionAttribute.cs
- Odbc32.cs
- LineServices.cs
- XmlSiteMapProvider.cs
- ObjectConverter.cs
- AuthenticationModuleElementCollection.cs
- CompositeCollection.cs
- BindingSource.cs
- XamlTreeBuilderBamlRecordWriter.cs
- Literal.cs
- SerialPort.cs
- TimeSpanFormat.cs
- XmlWriterTraceListener.cs
- TextBoxRenderer.cs
- HotCommands.cs
- UInt32Converter.cs
- DataSetFieldSchema.cs
- CngProvider.cs
- followingsibling.cs
- PasswordDeriveBytes.cs
- CallSiteHelpers.cs
- ModuleConfigurationInfo.cs
- Encoder.cs
- LambdaExpression.cs
- ExpressionUtilities.cs
- StatusBarItem.cs
- WebErrorHandler.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- MultiSelectRootGridEntry.cs
- InputBinder.cs
- ReaderWriterLock.cs