Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlILOptimizerVisitor.cs
- UnsafePeerToPeerMethods.cs
- ExpressionServices.cs
- GlobalProxySelection.cs
- RIPEMD160.cs
- PerfService.cs
- Quaternion.cs
- TimeZone.cs
- TextSimpleMarkerProperties.cs
- FormParameter.cs
- RootBrowserWindowAutomationPeer.cs
- TreeNodeSelectionProcessor.cs
- HtmlTernaryTree.cs
- LeftCellWrapper.cs
- SqlDataReaderSmi.cs
- SocketElement.cs
- InputMethodStateTypeInfo.cs
- DiagnosticsElement.cs
- SelfIssuedTokenFactoryCredential.cs
- SuppressIldasmAttribute.cs
- BindingMemberInfo.cs
- Site.cs
- documentsequencetextcontainer.cs
- SqlDataRecord.cs
- XsltOutput.cs
- FontSourceCollection.cs
- SqlBuffer.cs
- StaticFileHandler.cs
- DtdParser.cs
- VerifyHashRequest.cs
- _AutoWebProxyScriptEngine.cs
- Normalization.cs
- DotExpr.cs
- XPathSelfQuery.cs
- __Error.cs
- TimelineClockCollection.cs
- TypeDescriptorContext.cs
- entitydatasourceentitysetnameconverter.cs
- WorkItem.cs
- CharConverter.cs
- WindowsStatic.cs
- Attributes.cs
- InheritanceContextHelper.cs
- OdbcRowUpdatingEvent.cs
- ExtentJoinTreeNode.cs
- MenuRendererStandards.cs
- Resources.Designer.cs
- CodeConditionStatement.cs
- SingleConverter.cs
- GridViewRowPresenter.cs
- RandomNumberGenerator.cs
- URLAttribute.cs
- BinaryCommonClasses.cs
- COM2ExtendedTypeConverter.cs
- RowToFieldTransformer.cs
- ProfileWorkflowElement.cs
- FacetDescriptionElement.cs
- MaskedTextBox.cs
- SHA256.cs
- ErrorFormatterPage.cs
- DispatchChannelSink.cs
- UnsignedPublishLicense.cs
- AccessedThroughPropertyAttribute.cs
- StylusPointPropertyInfo.cs
- EncoderExceptionFallback.cs
- SqlRetyper.cs
- PrincipalPermission.cs
- GridViewUpdateEventArgs.cs
- CustomMenuItemCollection.cs
- DiffuseMaterial.cs
- UniqueIdentifierService.cs
- PeerOutputChannel.cs
- Point3DKeyFrameCollection.cs
- VoiceSynthesis.cs
- PageContent.cs
- DataObject.cs
- StringInfo.cs
- DynamicAttribute.cs
- ScriptMethodAttribute.cs
- XPathParser.cs
- HostedTransportConfigurationBase.cs
- ScriptingProfileServiceSection.cs
- ServerValidateEventArgs.cs
- WindowsButton.cs
- XmlSchemaExporter.cs
- FullTextBreakpoint.cs
- ScrollItemPatternIdentifiers.cs
- ReadWriteSpinLock.cs
- RegexFCD.cs
- CacheForPrimitiveTypes.cs
- InternalDispatchObject.cs
- ClockController.cs
- TextSelectionHighlightLayer.cs
- OracleString.cs
- DetectEofStream.cs
- SecurityKeyIdentifier.cs
- SqlClientPermission.cs
- XmlSubtreeReader.cs
- ShutDownListener.cs
- PerformanceCounterCategory.cs