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
- RtfToXamlLexer.cs
- XamlFxTrace.cs
- MediaSystem.cs
- MetadataItemCollectionFactory.cs
- ContourSegment.cs
- DelayedRegex.cs
- AccessKeyManager.cs
- CommunicationObject.cs
- DataBoundControlAdapter.cs
- ObjectDisposedException.cs
- RuleSettingsCollection.cs
- DictionaryItemsCollection.cs
- BitmapEffect.cs
- BitmapEffectrendercontext.cs
- Aggregates.cs
- ObjectTypeMapping.cs
- Geometry.cs
- TextServicesDisplayAttributePropertyRanges.cs
- AspNetHostingPermission.cs
- DataMemberAttribute.cs
- MonitorWrapper.cs
- Themes.cs
- BooleanKeyFrameCollection.cs
- PersonalizationDictionary.cs
- ConstructorBuilder.cs
- HttpModuleActionCollection.cs
- EditBehavior.cs
- Panel.cs
- BroadcastEventHelper.cs
- PageWrapper.cs
- XmlEncodedRawTextWriter.cs
- ConfigurationSectionCollection.cs
- BevelBitmapEffect.cs
- Vertex.cs
- TypeDelegator.cs
- DbParameterHelper.cs
- DrawingGroupDrawingContext.cs
- SolidBrush.cs
- Rotation3DAnimationBase.cs
- WinFormsSecurity.cs
- TableItemPatternIdentifiers.cs
- StaticTextPointer.cs
- CleanUpVirtualizedItemEventArgs.cs
- ContractReference.cs
- Tracking.cs
- ParseChildrenAsPropertiesAttribute.cs
- SharedHttpsTransportManager.cs
- ReliableSessionElement.cs
- HostTimeoutsElement.cs
- HttpRuntimeSection.cs
- RecognizedAudio.cs
- ToolTipAutomationPeer.cs
- StoreAnnotationsMap.cs
- DataGridViewDataConnection.cs
- BypassElementCollection.cs
- MethodCallExpression.cs
- EmptyQuery.cs
- DataPointer.cs
- ImageFormat.cs
- DataGridHelper.cs
- ProvideValueServiceProvider.cs
- ResolvedKeyFrameEntry.cs
- GorillaCodec.cs
- GetPageNumberCompletedEventArgs.cs
- ElapsedEventArgs.cs
- Compiler.cs
- WinFormsUtils.cs
- ComplexLine.cs
- ContextMenu.cs
- CompositeFontInfo.cs
- SplitterCancelEvent.cs
- DbParameterHelper.cs
- DateTimeFormatInfo.cs
- controlskin.cs
- SmtpFailedRecipientException.cs
- HandleRef.cs
- TraceHandlerErrorFormatter.cs
- SqlDataSourceQueryEditorForm.cs
- SerializationStore.cs
- VirtualizingStackPanel.cs
- LocalBuilder.cs
- XmlWrappingReader.cs
- SchemaElementDecl.cs
- WebPartHelpVerb.cs
- SearchExpression.cs
- Point3DValueSerializer.cs
- SortDescriptionCollection.cs
- StreamWriter.cs
- ListParaClient.cs
- DataGridViewCellStyleChangedEventArgs.cs
- CaseCqlBlock.cs
- PropertyRecord.cs
- CategoriesDocument.cs
- RequestBringIntoViewEventArgs.cs
- IdentifierCollection.cs
- BasicSecurityProfileVersion.cs
- DataBinder.cs
- WindowsServiceElement.cs
- DemultiplexingDispatchMessageFormatter.cs
- RoleManagerEventArgs.cs