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
- XamlBrushSerializer.cs
- StyleXamlTreeBuilder.cs
- ObjectHandle.cs
- BidOverLoads.cs
- PeerCollaboration.cs
- UIElementHelper.cs
- NativeMethods.cs
- VectorConverter.cs
- AttributeParameterInfo.cs
- PersonalizationStateInfo.cs
- dataprotectionpermission.cs
- HierarchicalDataSourceControl.cs
- PathGeometry.cs
- GraphicsPath.cs
- OrderedHashRepartitionStream.cs
- SubMenuStyle.cs
- DataGridRelationshipRow.cs
- SocketPermission.cs
- CrossContextChannel.cs
- MembershipUser.cs
- RecognitionResult.cs
- Point3DValueSerializer.cs
- RTLAwareMessageBox.cs
- SystemGatewayIPAddressInformation.cs
- linebase.cs
- SystemIPInterfaceStatistics.cs
- RtfNavigator.cs
- XmlWrappingReader.cs
- ResourcePermissionBase.cs
- StylusLogic.cs
- Ipv6Element.cs
- PageRanges.cs
- BindingContext.cs
- ObjectView.cs
- MappingItemCollection.cs
- ActionMismatchAddressingException.cs
- DelimitedListTraceListener.cs
- MenuItemBindingCollection.cs
- IdentityHolder.cs
- CompModSwitches.cs
- RegexMatch.cs
- SeparatorAutomationPeer.cs
- TrustLevelCollection.cs
- HtmlTableCellCollection.cs
- HashHelper.cs
- ColorBlend.cs
- BamlLocalizableResourceKey.cs
- ChildChangedEventArgs.cs
- BamlLocalizationDictionary.cs
- CodeGen.cs
- DataGridViewCellStyleEditor.cs
- webeventbuffer.cs
- DataGridViewComboBoxCell.cs
- ParameterToken.cs
- XmlDataImplementation.cs
- FunctionNode.cs
- RegistrationServices.cs
- ScrollBar.cs
- NullableFloatAverageAggregationOperator.cs
- EntitySetRetriever.cs
- AVElementHelper.cs
- NonDualMessageSecurityOverHttp.cs
- FixedBufferAttribute.cs
- HideDisabledControlAdapter.cs
- MessageDispatch.cs
- UnSafeCharBuffer.cs
- SelectionEditingBehavior.cs
- NavigationProperty.cs
- Menu.cs
- UserPreferenceChangingEventArgs.cs
- HeaderCollection.cs
- IndentTextWriter.cs
- EventRoute.cs
- BoundPropertyEntry.cs
- TransactionValidationBehavior.cs
- XmlSchemaType.cs
- TextTreeNode.cs
- DecoratedNameAttribute.cs
- FunctionCommandText.cs
- DiagnosticsElement.cs
- WorkflowMessageEventHandler.cs
- ping.cs
- RadioButtonDesigner.cs
- XamlFigureLengthSerializer.cs
- Convert.cs
- TreeNode.cs
- TypedReference.cs
- PocoEntityKeyStrategy.cs
- URLAttribute.cs
- MoveSizeWinEventHandler.cs
- TypeDescriptionProvider.cs
- InputProcessorProfilesLoader.cs
- QilInvokeLateBound.cs
- IndexedEnumerable.cs
- RectKeyFrameCollection.cs
- CommonObjectSecurity.cs
- XpsResourcePolicy.cs
- DataControlImageButton.cs
- RelatedView.cs
- PaintEvent.cs