Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- FtpWebRequest.cs
- HttpResponse.cs
- XPathNavigator.cs
- SeverityFilter.cs
- SqlUtils.cs
- WindowsTooltip.cs
- PingReply.cs
- SafeMemoryMappedViewHandle.cs
- SignatureHelper.cs
- PeerEndPoint.cs
- EventItfInfo.cs
- ConnectionPoint.cs
- PlacementWorkspace.cs
- ExpressionTextBoxAutomationPeer.cs
- NamespaceMapping.cs
- BamlLocalizableResourceKey.cs
- MetadataWorkspace.cs
- ComplexTypeEmitter.cs
- UIElementIsland.cs
- ClonableStack.cs
- FontStretches.cs
- SqlProfileProvider.cs
- OdbcConnectionOpen.cs
- IISMapPath.cs
- InlinedLocationReference.cs
- GeometryGroup.cs
- RolePrincipal.cs
- XmlSortKeyAccumulator.cs
- Privilege.cs
- Walker.cs
- PolygonHotSpot.cs
- SlotInfo.cs
- BamlLocalizabilityResolver.cs
- XmlHierarchicalDataSourceView.cs
- BinaryConverter.cs
- ComponentResourceKey.cs
- EventLogTraceListener.cs
- CatalogZone.cs
- EmbeddedMailObjectCollectionEditor.cs
- LazyTextWriterCreator.cs
- DrawingBrush.cs
- WebResponse.cs
- ColorContextHelper.cs
- ContentElement.cs
- Thread.cs
- XmlSchemaDatatype.cs
- MimeWriter.cs
- LifetimeServices.cs
- CodeAssignStatement.cs
- QueryReaderSettings.cs
- RawUIStateInputReport.cs
- BitmapScalingModeValidation.cs
- VoiceSynthesis.cs
- sapiproxy.cs
- MobileControlsSectionHandler.cs
- XmlSchemaIdentityConstraint.cs
- OdbcConnectionString.cs
- RootBuilder.cs
- XpsThumbnail.cs
- Item.cs
- WorkflowServiceHost.cs
- infer.cs
- SweepDirectionValidation.cs
- InvalidStoreProtectionKeyException.cs
- CustomSignedXml.cs
- ParenthesizePropertyNameAttribute.cs
- Win32MouseDevice.cs
- HwndSourceParameters.cs
- DependencyObject.cs
- CheckBoxBaseAdapter.cs
- ColorInterpolationModeValidation.cs
- TiffBitmapDecoder.cs
- XmlTextEncoder.cs
- RuntimeVariablesExpression.cs
- ObjectStateEntry.cs
- DashStyles.cs
- X509Utils.cs
- Pointer.cs
- EvidenceTypeDescriptor.cs
- XmlProcessingInstruction.cs
- XmlNodeChangedEventManager.cs
- AutomationElementCollection.cs
- ErrorReporting.cs
- FormsAuthenticationConfiguration.cs
- PermissionRequestEvidence.cs
- XmlAnyElementAttribute.cs
- AsyncSerializedWorker.cs
- DiscoveryDocumentSearchPattern.cs
- RangeValuePatternIdentifiers.cs
- Executor.cs
- newinstructionaction.cs
- Constant.cs
- BitmapDecoder.cs
- ResponseBodyWriter.cs
- CodeDirectiveCollection.cs
- XslAstAnalyzer.cs
- HttpRawResponse.cs
- PackWebResponse.cs
- PackageRelationshipCollection.cs
- SqlVersion.cs