Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / DrawTreeNodeEventArgs.cs / 1305376 / 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
- FamilyTypefaceCollection.cs
- MatrixKeyFrameCollection.cs
- MenuItem.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SqlDelegatedTransaction.cs
- DataGridLinkButton.cs
- Int64.cs
- ArraySegment.cs
- IApplicationTrustManager.cs
- ProcessThreadCollection.cs
- BitmapMetadataEnumerator.cs
- MatrixUtil.cs
- PrintPageEvent.cs
- SymLanguageType.cs
- InputQueueChannel.cs
- ListViewCommandEventArgs.cs
- TextModifierScope.cs
- CredentialCache.cs
- CommunicationObjectFaultedException.cs
- PrintPreviewDialog.cs
- VirtualizingPanel.cs
- XslAstAnalyzer.cs
- HttpFormatExtensions.cs
- TypeValidationEventArgs.cs
- ListControlActionList.cs
- RefExpr.cs
- SystemResourceHost.cs
- PanelStyle.cs
- CodeExporter.cs
- TypeConverterAttribute.cs
- WeakReference.cs
- SecurityCriticalDataForSet.cs
- EditingCommands.cs
- NetworkInterface.cs
- Ipv6Element.cs
- Calendar.cs
- KeySplineConverter.cs
- WCFServiceClientProxyGenerator.cs
- QueryCorrelationInitializer.cs
- DetailsViewPageEventArgs.cs
- HtmlTable.cs
- ObjectAnimationBase.cs
- AdPostCacheSubstitution.cs
- CollectionChange.cs
- XomlCompilerError.cs
- UriExt.cs
- SapiGrammar.cs
- ComPlusDiagnosticTraceSchemas.cs
- mansign.cs
- GridViewItemAutomationPeer.cs
- SystemIPInterfaceStatistics.cs
- ResourceAttributes.cs
- MetadataCollection.cs
- AstTree.cs
- ApplicationTrust.cs
- SelectionHighlightInfo.cs
- XmlArrayItemAttribute.cs
- InputDevice.cs
- CompilationLock.cs
- XmlLanguageConverter.cs
- HotSpot.cs
- DBSchemaRow.cs
- EncoderExceptionFallback.cs
- HtmlAnchor.cs
- XmlSchemaIdentityConstraint.cs
- AncestorChangedEventArgs.cs
- ConnectionStringSettings.cs
- ScrollItemPattern.cs
- UserMapPath.cs
- WebPartDisplayModeEventArgs.cs
- ToggleProviderWrapper.cs
- Marshal.cs
- ReaderContextStackData.cs
- EndpointAddressMessageFilterTable.cs
- Roles.cs
- GestureRecognizer.cs
- FileSystemInfo.cs
- AnyAllSearchOperator.cs
- ShaperBuffers.cs
- TraceHwndHost.cs
- TextTreeObjectNode.cs
- Matrix3D.cs
- ColorConverter.cs
- LoginName.cs
- SingleAnimationBase.cs
- SpanIndex.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- DayRenderEvent.cs
- XmlChildNodes.cs
- EditorZone.cs
- URLBuilder.cs
- UniqueIdentifierService.cs
- ChannelServices.cs
- SelectionRange.cs
- WebColorConverter.cs
- DesignSurfaceCollection.cs
- SafeNativeMethods.cs
- WebChannelFactory.cs
- DataGridViewCheckBoxCell.cs
- ConstantSlot.cs