Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / WinForms / Managed / System / WinForms / DrawTreeNodeEventArgs.cs / 1 / DrawTreeNodeEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms.VisualStyles; ////// /// This class contains the information a user needs to paint TreeView nodes. /// public class DrawTreeNodeEventArgs : EventArgs { private readonly Graphics graphics; private readonly TreeNode node; private readonly Rectangle bounds; private readonly TreeNodeStates state; private bool drawDefault; ////// /// Creates a new DrawTreeNodeEventArgs with the given parameters. /// public DrawTreeNodeEventArgs(Graphics graphics, TreeNode node, Rectangle bounds, TreeNodeStates state) { this.graphics = graphics; this.node = node; this.bounds = bounds; this.state = state; this.drawDefault = false; } ////// /// Causes the item do be drawn by the system instead of owner drawn. /// NOTE: In OwnerDrawText mode, setting this to true is same as calling DrawText. /// public bool DrawDefault { get { return drawDefault; } set { drawDefault = value; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The node to be painted. /// public TreeNode Node { get { return node; } } ////// /// The rectangle outlining the area in which the painting should be done. /// public Rectangle Bounds { get { return bounds; } } ////// /// Miscellaneous state information. /// public TreeNodeStates State { get { return state; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Windows.Forms { using System.Diagnostics; using System; using System.ComponentModel; using System.Drawing; using Microsoft.Win32; using System.Windows.Forms.VisualStyles; ////// /// This class contains the information a user needs to paint TreeView nodes. /// public class DrawTreeNodeEventArgs : EventArgs { private readonly Graphics graphics; private readonly TreeNode node; private readonly Rectangle bounds; private readonly TreeNodeStates state; private bool drawDefault; ////// /// Creates a new DrawTreeNodeEventArgs with the given parameters. /// public DrawTreeNodeEventArgs(Graphics graphics, TreeNode node, Rectangle bounds, TreeNodeStates state) { this.graphics = graphics; this.node = node; this.bounds = bounds; this.state = state; this.drawDefault = false; } ////// /// Causes the item do be drawn by the system instead of owner drawn. /// NOTE: In OwnerDrawText mode, setting this to true is same as calling DrawText. /// public bool DrawDefault { get { return drawDefault; } set { drawDefault = value; } } ////// /// Graphics object with which painting should be done. /// public Graphics Graphics { get { return graphics; } } ////// /// The node to be painted. /// public TreeNode Node { get { return node; } } ////// /// The rectangle outlining the area in which the painting should be done. /// public Rectangle Bounds { get { return bounds; } } ////// /// Miscellaneous state information. /// public TreeNodeStates State { get { return state; } } } } // 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
- KeySplineConverter.cs
- VirtualPathProvider.cs
- RegexRunnerFactory.cs
- ExtractorMetadata.cs
- ValidationError.cs
- ObjectConverter.cs
- ValueType.cs
- TouchPoint.cs
- AttachedProperty.cs
- PlatformCulture.cs
- ExpressionDumper.cs
- dataobject.cs
- Substitution.cs
- WindowsListViewItemCheckBox.cs
- UpdatePanelTriggerCollection.cs
- EntityContainerEmitter.cs
- ISCIIEncoding.cs
- Size3DValueSerializer.cs
- PriorityQueue.cs
- EntityDataSourceDesigner.cs
- DataGridCellItemAutomationPeer.cs
- LocalTransaction.cs
- CommandLineParser.cs
- RSAOAEPKeyExchangeFormatter.cs
- EntityRecordInfo.cs
- BrushMappingModeValidation.cs
- InertiaRotationBehavior.cs
- Coordinator.cs
- EventSetterHandlerConverter.cs
- ObjectQuery_EntitySqlExtensions.cs
- WebPartActionVerb.cs
- BamlBinaryReader.cs
- AuthenticationService.cs
- OracleDataReader.cs
- EventLogPermission.cs
- ConfigXmlSignificantWhitespace.cs
- SHA384CryptoServiceProvider.cs
- DetailsViewRowCollection.cs
- ServerIdentity.cs
- TdsRecordBufferSetter.cs
- XmlIlTypeHelper.cs
- AudioException.cs
- DefaultValueAttribute.cs
- DataGridPagerStyle.cs
- SessionStateUtil.cs
- FormsAuthenticationUserCollection.cs
- StylesEditorDialog.cs
- BorderSidesEditor.cs
- Utils.cs
- ControlCollection.cs
- CqlIdentifiers.cs
- MultilineStringConverter.cs
- Setter.cs
- CaseCqlBlock.cs
- ResourceBinder.cs
- TabOrder.cs
- SchemaDeclBase.cs
- HelpKeywordAttribute.cs
- RegionData.cs
- XmlSerializerFactory.cs
- PrintDialog.cs
- RenderDataDrawingContext.cs
- X509ChainPolicy.cs
- DispatchChannelSink.cs
- AlignmentYValidation.cs
- ProxyGenerator.cs
- ObsoleteAttribute.cs
- ClosureBinding.cs
- PresentationTraceSources.cs
- Win32NamedPipes.cs
- SystemFonts.cs
- ColumnClickEvent.cs
- _ServiceNameStore.cs
- WindowsNonControl.cs
- BitmapEffectInputData.cs
- WindowsUpDown.cs
- BatchStream.cs
- StringStorage.cs
- ReferenceCountedObject.cs
- Slider.cs
- ObjectDisposedException.cs
- WindowsEditBox.cs
- Literal.cs
- WindowsScrollBarBits.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- GroupByQueryOperator.cs
- GeometryValueSerializer.cs
- EntitySqlQueryState.cs
- DockPattern.cs
- EntityContainerAssociationSetEnd.cs
- QuaternionAnimationUsingKeyFrames.cs
- RewritingValidator.cs
- CompilationRelaxations.cs
- TrustVersion.cs
- SqlGatherProducedAliases.cs
- ActionFrame.cs
- StateWorkerRequest.cs
- InProcStateClientManager.cs
- DynamicRouteExpression.cs
- XamlPoint3DCollectionSerializer.cs