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
- Encoder.cs
- DomainUpDown.cs
- SiteMapNodeItem.cs
- ExpressionParser.cs
- XsltOutput.cs
- SqlMethodCallConverter.cs
- TTSEvent.cs
- ServiceObjectContainer.cs
- EncoderParameters.cs
- HttpStreamMessageEncoderFactory.cs
- RbTree.cs
- AuthStoreRoleProvider.cs
- ITreeGenerator.cs
- BitmapEffect.cs
- MenuItemStyle.cs
- BamlTreeNode.cs
- DataColumnMappingCollection.cs
- StrokeIntersection.cs
- NotifyCollectionChangedEventArgs.cs
- LightweightCodeGenerator.cs
- ProxyWebPartManager.cs
- SafeBitVector32.cs
- XmlChildNodes.cs
- TreeIterators.cs
- FlowDocumentPaginator.cs
- RecognizedWordUnit.cs
- DefaultValueTypeConverter.cs
- FixedSOMImage.cs
- StringToken.cs
- DocumentCollection.cs
- HtmlInputButton.cs
- BitmapCacheBrush.cs
- MediaSystem.cs
- SQLDouble.cs
- AddIn.cs
- Set.cs
- Evidence.cs
- DataSourceControlBuilder.cs
- TypeUtil.cs
- DeviceContext2.cs
- ADRole.cs
- QilChoice.cs
- AttributeCollection.cs
- XPathParser.cs
- Point3DCollectionValueSerializer.cs
- MouseOverProperty.cs
- PeerNameRegistration.cs
- ListViewInsertedEventArgs.cs
- FontCacheLogic.cs
- Task.cs
- TemplateControl.cs
- ExceptionValidationRule.cs
- DesignerAdapterAttribute.cs
- MergeExecutor.cs
- MediaEntryAttribute.cs
- URI.cs
- DataKey.cs
- ArgumentOutOfRangeException.cs
- x509store.cs
- DeviceSpecificChoice.cs
- TextPattern.cs
- TableLayoutStyle.cs
- InternalDuplexChannelFactory.cs
- listitem.cs
- DataMember.cs
- WorkflowEnvironment.cs
- WaitForChangedResult.cs
- PatternMatcher.cs
- XhtmlBasicControlAdapter.cs
- TopClause.cs
- CornerRadius.cs
- WS2007HttpBinding.cs
- CustomAttributeBuilder.cs
- CompatibleComparer.cs
- LiteralControl.cs
- DependencyPropertyValueSerializer.cs
- CodePageUtils.cs
- DrawingState.cs
- Range.cs
- GridViewRowEventArgs.cs
- StorageConditionPropertyMapping.cs
- TableColumnCollection.cs
- TextBoxRenderer.cs
- DataTableMapping.cs
- DynamicValidator.cs
- CollectionConverter.cs
- CombinedHttpChannel.cs
- WebBrowsableAttribute.cs
- LocatorGroup.cs
- baseaxisquery.cs
- ExplicitDiscriminatorMap.cs
- TailPinnedEventArgs.cs
- ControlCollection.cs
- DynamicPropertyReader.cs
- CompilationRelaxations.cs
- _DigestClient.cs
- DataGridViewCell.cs
- HyperLinkStyle.cs
- NotifyIcon.cs
- ListViewItemMouseHoverEvent.cs