Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 2 / 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
- Helpers.cs
- BindingOperations.cs
- Function.cs
- WindowsListViewSubItem.cs
- LogSwitch.cs
- FixedPosition.cs
- DirectoryNotFoundException.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlAtomErrorReader.cs
- SequenceDesigner.cs
- SortedDictionary.cs
- RecommendedAsConfigurableAttribute.cs
- DesignerFrame.cs
- SafeHandles.cs
- MenuItemBinding.cs
- SRDisplayNameAttribute.cs
- SelectorItemAutomationPeer.cs
- BeginEvent.cs
- PackagingUtilities.cs
- Configuration.cs
- Stylus.cs
- DataGridViewCellStateChangedEventArgs.cs
- TemplatePagerField.cs
- CoordinationService.cs
- MenuAdapter.cs
- SmiEventSink_DeferedProcessing.cs
- DynamicMetaObjectBinder.cs
- DbMetaDataFactory.cs
- TypeUsage.cs
- HandleCollector.cs
- CloseCollectionAsyncResult.cs
- TransportElement.cs
- XmlAggregates.cs
- ListDictionaryInternal.cs
- TemplateBindingExtension.cs
- DataServiceHostFactory.cs
- InternalEnumValidatorAttribute.cs
- PageEventArgs.cs
- XmlSchemaValidator.cs
- LoginView.cs
- TransformValueSerializer.cs
- UnicodeEncoding.cs
- ExceptionHelpers.cs
- SessionStateItemCollection.cs
- TextDecoration.cs
- BitmapEffectInput.cs
- MetaType.cs
- PropertyGridCommands.cs
- TypeExtensions.cs
- InlinedAggregationOperatorEnumerator.cs
- CreateUserWizardStep.cs
- NodeInfo.cs
- AssociationType.cs
- InvokeHandlers.cs
- EventLogEntryCollection.cs
- SkewTransform.cs
- EncodingDataItem.cs
- codemethodreferenceexpression.cs
- FormDesigner.cs
- ScanQueryOperator.cs
- FileInfo.cs
- PersonalizationProviderHelper.cs
- EntityDataSourceWizardForm.cs
- WebConfigurationHost.cs
- SafeEventLogWriteHandle.cs
- InvokeHandlers.cs
- ConfigPathUtility.cs
- GeneralTransform3DGroup.cs
- Deserializer.cs
- XmlILStorageConverter.cs
- InheritanceUI.cs
- DefaultBindingPropertyAttribute.cs
- CodeParameterDeclarationExpressionCollection.cs
- MemberJoinTreeNode.cs
- SmiEventSink.cs
- AggregateNode.cs
- EncryptedPackage.cs
- OutputCacheSettingsSection.cs
- BitmapScalingModeValidation.cs
- XmlElementList.cs
- GridViewSortEventArgs.cs
- metadatamappinghashervisitor.cs
- XLinq.cs
- SimpleHandlerFactory.cs
- ButtonFieldBase.cs
- TTSEngineTypes.cs
- ExpressionNormalizer.cs
- ElementProxy.cs
- SecureEnvironment.cs
- ButtonFieldBase.cs
- CounterCreationDataConverter.cs
- ApplicationActivator.cs
- ExpandCollapseIsCheckedConverter.cs
- FontWeight.cs
- DoubleKeyFrameCollection.cs
- TerminateSequence.cs
- EventListener.cs
- CryptoConfig.cs
- DataGridViewSelectedCellCollection.cs
- Simplifier.cs