Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- JournalEntryStack.cs
- PathFigure.cs
- wgx_render.cs
- InstalledVoice.cs
- LinkedList.cs
- httpserverutility.cs
- XamlGridLengthSerializer.cs
- NumberFormatter.cs
- XPathSingletonIterator.cs
- PropertyGeneratedEventArgs.cs
- ButtonChrome.cs
- TreeViewItemAutomationPeer.cs
- ObjectListItem.cs
- CryptoKeySecurity.cs
- XmlSerializationWriter.cs
- ProcessThread.cs
- OrderedEnumerableRowCollection.cs
- SystemUdpStatistics.cs
- FormatterConverter.cs
- HttpFileCollection.cs
- Literal.cs
- TextEndOfLine.cs
- SafeHandle.cs
- metrodevice.cs
- InvalidDataException.cs
- WebPartConnectionsCloseVerb.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- CodeArrayCreateExpression.cs
- XamlClipboardData.cs
- Label.cs
- SafeCoTaskMem.cs
- WebPartMinimizeVerb.cs
- dataprotectionpermission.cs
- Queue.cs
- WriteFileContext.cs
- RequiredAttributeAttribute.cs
- DecimalConstantAttribute.cs
- PathGeometry.cs
- TextBoxAutomationPeer.cs
- TrackingServices.cs
- HttpChannelHelper.cs
- CoTaskMemHandle.cs
- MsmqProcessProtocolHandler.cs
- PathNode.cs
- CodeDOMProvider.cs
- Menu.cs
- AdapterUtil.cs
- WebBrowserUriTypeConverter.cs
- TemplateControl.cs
- ProfileInfo.cs
- SizeConverter.cs
- HandleExceptionArgs.cs
- AmbientLight.cs
- DateTimeParse.cs
- EnterpriseServicesHelper.cs
- SynchronizationContext.cs
- HebrewCalendar.cs
- RequiredAttributeAttribute.cs
- UserControlBuildProvider.cs
- StorageSetMapping.cs
- ManifestResourceInfo.cs
- XmlSchemaParticle.cs
- DomainUpDown.cs
- Label.cs
- SByteStorage.cs
- BrowserTree.cs
- DesignerUtils.cs
- OleDbMetaDataFactory.cs
- UrlMappingsSection.cs
- DbUpdateCommandTree.cs
- UInt32Converter.cs
- ValidationPropertyAttribute.cs
- HtmlTableCellCollection.cs
- ControlType.cs
- StringExpressionSet.cs
- MetadataPropertyCollection.cs
- ClientRuntimeConfig.cs
- FixedBufferAttribute.cs
- SHA1CryptoServiceProvider.cs
- CFGGrammar.cs
- SynchronizingStream.cs
- PropertyEntry.cs
- XmlFormatMapping.cs
- MimeMapping.cs
- JournalNavigationScope.cs
- WebPartZoneBaseDesigner.cs
- TrackingProfile.cs
- FunctionMappingTranslator.cs
- SqlBinder.cs
- EntityDataSourceDesigner.cs
- UserNameSecurityTokenProvider.cs
- DesignTimeParseData.cs
- IRCollection.cs
- BoolExpressionVisitors.cs
- WebPartAuthorizationEventArgs.cs
- ExtendLockCommand.cs
- RepeaterCommandEventArgs.cs
- QueryGeneratorBase.cs
- TextFormatterImp.cs
- XamlSerializerUtil.cs