Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- RefType.cs
- GraphicsState.cs
- IconBitmapDecoder.cs
- DataGridViewCellValueEventArgs.cs
- CellLabel.cs
- InputLanguageSource.cs
- TypeInformation.cs
- GridViewCancelEditEventArgs.cs
- PerformanceCounterPermission.cs
- DBConcurrencyException.cs
- CheckBoxBaseAdapter.cs
- ClosableStream.cs
- FrameworkElementFactory.cs
- RoutedEventArgs.cs
- XamlUtilities.cs
- XmlEncodedRawTextWriter.cs
- HtmlInputText.cs
- AuthenticationException.cs
- WorkflowItemPresenter.cs
- ProcessDesigner.cs
- TemplateModeChangedEventArgs.cs
- AllMembershipCondition.cs
- MemberAccessException.cs
- XmlElement.cs
- TextContainerChangeEventArgs.cs
- Material.cs
- OleDbErrorCollection.cs
- AllMembershipCondition.cs
- FileUpload.cs
- HScrollBar.cs
- autovalidator.cs
- WpfMemberInvoker.cs
- PagesSection.cs
- TextCompositionManager.cs
- AttributeSetAction.cs
- CursorConverter.cs
- XmlSchemaSimpleContentRestriction.cs
- DBAsyncResult.cs
- NavigationProperty.cs
- XmlNodeList.cs
- CodeDOMUtility.cs
- PageHandlerFactory.cs
- ClientScriptItem.cs
- sqlstateclientmanager.cs
- TranslateTransform.cs
- DocumentOrderComparer.cs
- DriveInfo.cs
- ConfigViewGenerator.cs
- MachineKeySection.cs
- UnknownBitmapDecoder.cs
- CommandHelpers.cs
- XmlChoiceIdentifierAttribute.cs
- MouseDevice.cs
- IISUnsafeMethods.cs
- StructuredType.cs
- _SecureChannel.cs
- SqlMethodTransformer.cs
- ConsoleTraceListener.cs
- TextFormatterContext.cs
- EntityRecordInfo.cs
- SecurityResources.cs
- PriorityQueue.cs
- SystemIcmpV4Statistics.cs
- MultiView.cs
- ToolStripDropDown.cs
- TemplatePropertyEntry.cs
- XmlSchemaNotation.cs
- HwndProxyElementProvider.cs
- StartUpEventArgs.cs
- RangeValidator.cs
- SecureEnvironment.cs
- MainMenu.cs
- ProxyWebPartManager.cs
- ProcessInfo.cs
- ApplicationSettingsBase.cs
- InstancePersistenceContext.cs
- Brush.cs
- MeasureItemEvent.cs
- MeasureData.cs
- CompositionTarget.cs
- DataGridViewIntLinkedList.cs
- BuildProvidersCompiler.cs
- PointF.cs
- StringStorage.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- RowToParametersTransformer.cs
- DataGridViewBand.cs
- HashHelper.cs
- MdImport.cs
- AutomationElementIdentifiers.cs
- DBConnectionString.cs
- DebuggerService.cs
- RuleDefinitions.cs
- UriTemplateQueryValue.cs
- BitmapEffectInput.cs
- Table.cs
- SecurityContextSecurityToken.cs
- WebSysDefaultValueAttribute.cs
- XmlSerializerSection.cs
- XmlSchemaComplexContentExtension.cs