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
- TransformerInfoCollection.cs
- LeafCellTreeNode.cs
- CapabilitiesAssignment.cs
- PoisonMessageException.cs
- DispatcherHooks.cs
- ExpressionVisitor.cs
- RtfToXamlLexer.cs
- DesignerActionMethodItem.cs
- HostingEnvironment.cs
- ServiceObjectContainer.cs
- MailDefinition.cs
- RayMeshGeometry3DHitTestResult.cs
- PreviewPrintController.cs
- SelectionWordBreaker.cs
- Light.cs
- JpegBitmapDecoder.cs
- UInt64.cs
- DataListItemCollection.cs
- BitmapDownload.cs
- VariableBinder.cs
- XPathDescendantIterator.cs
- TaskHelper.cs
- CalloutQueueItem.cs
- ScrollChrome.cs
- IDReferencePropertyAttribute.cs
- HtmlInputControl.cs
- ChooseAction.cs
- WebBaseEventKeyComparer.cs
- EventSourceCreationData.cs
- _TLSstream.cs
- IIS7UserPrincipal.cs
- WindowsListViewGroup.cs
- TypeInitializationException.cs
- XamlStream.cs
- SelectionEditingBehavior.cs
- WebPartHeaderCloseVerb.cs
- AppDomain.cs
- ApplicationCommands.cs
- PerspectiveCamera.cs
- XmlILStorageConverter.cs
- InputLangChangeRequestEvent.cs
- DefinitionUpdate.cs
- PinnedBufferMemoryStream.cs
- PropertyGridDesigner.cs
- SettingsPropertyValue.cs
- EncoderFallback.cs
- ListControlConvertEventArgs.cs
- BaseDataListDesigner.cs
- PerformanceCounterPermissionEntryCollection.cs
- Dump.cs
- updateconfighost.cs
- CompModSwitches.cs
- OdbcCommand.cs
- ExceptionUtility.cs
- PopupControlService.cs
- BitmapData.cs
- URI.cs
- Mapping.cs
- InheritanceAttribute.cs
- ListSourceHelper.cs
- ArrangedElement.cs
- AliasExpr.cs
- Formatter.cs
- versioninfo.cs
- TemplateEditingFrame.cs
- ValueUtilsSmi.cs
- Oid.cs
- ServiceDescription.cs
- TextRangeAdaptor.cs
- PenThreadPool.cs
- ApplicationTrust.cs
- TextServicesLoader.cs
- LayoutEvent.cs
- RuntimeUtils.cs
- DesignerListAdapter.cs
- DataControlFieldCollection.cs
- HtmlTernaryTree.cs
- SafeLocalMemHandle.cs
- ReadOnlyTernaryTree.cs
- HtmlHistory.cs
- WebBrowserNavigatingEventHandler.cs
- DataGridViewLayoutData.cs
- VerticalAlignConverter.cs
- GridViewRowEventArgs.cs
- OdbcDataReader.cs
- SecurityStateEncoder.cs
- InstanceDataCollection.cs
- ModelFactory.cs
- HttpInputStream.cs
- SeparatorAutomationPeer.cs
- DataSourceHelper.cs
- SafeLocalAllocation.cs
- BinaryOperationBinder.cs
- MTConfigUtil.cs
- Canvas.cs
- FocusWithinProperty.cs
- UpdatePanelControlTrigger.cs
- IsolatedStorageFileStream.cs
- MoveSizeWinEventHandler.cs
- CachedTypeface.cs