Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormViewInsertedEventArgs.cs
- newinstructionaction.cs
- CSharpCodeProvider.cs
- CompilerWrapper.cs
- StringOutput.cs
- DesignerLoader.cs
- MarshalDirectiveException.cs
- FacetDescriptionElement.cs
- webclient.cs
- CodeNamespaceImport.cs
- TimeoutException.cs
- ObjectDataSourceMethodEventArgs.cs
- TextEditorThreadLocalStore.cs
- AVElementHelper.cs
- ClientData.cs
- IdleTimeoutMonitor.cs
- jithelpers.cs
- TextStore.cs
- Grant.cs
- SeverityFilter.cs
- StateWorkerRequest.cs
- TemplateParser.cs
- GrammarBuilderDictation.cs
- Scheduler.cs
- invalidudtexception.cs
- TextServicesHost.cs
- FindSimilarActivitiesVerb.cs
- XmlDataCollection.cs
- DataServiceStreamResponse.cs
- DoubleAnimation.cs
- SQLGuid.cs
- ParseHttpDate.cs
- DiscoveryMessageSequence11.cs
- TdsParser.cs
- CookieHandler.cs
- OdbcException.cs
- ProxyWebPartConnectionCollection.cs
- WorkflowRuntimeServiceElement.cs
- HttpBindingExtension.cs
- ActivationServices.cs
- StrokeCollectionDefaultValueFactory.cs
- Lease.cs
- DaylightTime.cs
- ListParaClient.cs
- NumericPagerField.cs
- SqlParameterizer.cs
- BasicKeyConstraint.cs
- IndicShape.cs
- Assign.cs
- MetafileHeader.cs
- QueryTreeBuilder.cs
- ClientBuildManager.cs
- ValidationVisibilityAttribute.cs
- TableParagraph.cs
- TransactionsSectionGroup.cs
- GlyphInfoList.cs
- TextRangeEditTables.cs
- SystemIPInterfaceProperties.cs
- PrintController.cs
- AutomationProperties.cs
- DoubleUtil.cs
- XPathScanner.cs
- DataFormat.cs
- TypeSource.cs
- FactoryGenerator.cs
- CoreChannel.cs
- DataGridViewCellValidatingEventArgs.cs
- InputMethodStateChangeEventArgs.cs
- KnownTypeHelper.cs
- Underline.cs
- StreamAsIStream.cs
- SafeRsaProviderHandle.cs
- DropShadowEffect.cs
- XmlJsonWriter.cs
- basenumberconverter.cs
- CommandHelper.cs
- Nodes.cs
- DetailsViewRow.cs
- WebSysDefaultValueAttribute.cs
- Model3D.cs
- StylusPlugin.cs
- COAUTHIDENTITY.cs
- CaseStatement.cs
- CommandID.cs
- AuthStoreRoleProvider.cs
- StatusBar.cs
- ListSortDescription.cs
- CounterCreationDataCollection.cs
- Semaphore.cs
- WebBrowsableAttribute.cs
- RefreshPropertiesAttribute.cs
- SafeRightsManagementHandle.cs
- ImageClickEventArgs.cs
- HttpCachePolicyElement.cs
- WindowsSpinner.cs
- GeneratedCodeAttribute.cs
- CmsInterop.cs
- ControlHelper.cs
- ObjectTokenCategory.cs