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
- SqlInternalConnectionTds.cs
- DataReaderContainer.cs
- DifferencingCollection.cs
- DisplayNameAttribute.cs
- KerberosSecurityTokenProvider.cs
- StrongNameUtility.cs
- XmlSignificantWhitespace.cs
- _emptywebproxy.cs
- RoutedCommand.cs
- ReadOnlyDictionary.cs
- ExitEventArgs.cs
- SkewTransform.cs
- SessionPageStateSection.cs
- CorrelationManager.cs
- LifetimeMonitor.cs
- ScopelessEnumAttribute.cs
- ConfigXmlWhitespace.cs
- MultiViewDesigner.cs
- GiveFeedbackEventArgs.cs
- Enlistment.cs
- InvalidAsynchronousStateException.cs
- QilChoice.cs
- SystemIPInterfaceProperties.cs
- CharEntityEncoderFallback.cs
- GetPageCompletedEventArgs.cs
- ResizeGrip.cs
- ColumnHeaderConverter.cs
- CryptoApi.cs
- WebServiceFaultDesigner.cs
- DocumentPaginator.cs
- QueryResponse.cs
- RenderData.cs
- SqlProvider.cs
- SafeNativeHandle.cs
- WrappedIUnknown.cs
- MetadataFile.cs
- WebPartChrome.cs
- ISAPIWorkerRequest.cs
- WindowsSlider.cs
- EmbeddedObject.cs
- GeneralTransformGroup.cs
- DATA_BLOB.cs
- RequestUriProcessor.cs
- DataPagerFieldCollection.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataControlField.cs
- TemplateBamlRecordReader.cs
- pingexception.cs
- FontUnitConverter.cs
- KnownTypesHelper.cs
- EntityCodeGenerator.cs
- TreePrinter.cs
- EnumerableCollectionView.cs
- CompileLiteralTextParser.cs
- VersionedStreamOwner.cs
- InlineCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- MILUtilities.cs
- Effect.cs
- EmptyQuery.cs
- ClassValidator.cs
- BodyWriter.cs
- RoutedPropertyChangedEventArgs.cs
- DataGridViewLinkColumn.cs
- Model3D.cs
- TimelineClockCollection.cs
- TrackingMemoryStreamFactory.cs
- NameTable.cs
- XmlFormatExtensionPointAttribute.cs
- InkCanvasSelectionAdorner.cs
- FileVersionInfo.cs
- ArrayTypeMismatchException.cs
- XmlAnyElementAttribute.cs
- DbgCompiler.cs
- PerfService.cs
- WebPartCatalogCloseVerb.cs
- TableChangeProcessor.cs
- FormViewPagerRow.cs
- OutputScope.cs
- XmlAttribute.cs
- DetailsViewUpdateEventArgs.cs
- Validator.cs
- FileDialog.cs
- XamlParser.cs
- PaintValueEventArgs.cs
- DataGridViewColumnHeaderCell.cs
- VectorKeyFrameCollection.cs
- GenericNameHandler.cs
- RegexCharClass.cs
- ProjectionPlanCompiler.cs
- TableCellCollection.cs
- IISUnsafeMethods.cs
- OleDbErrorCollection.cs
- ConfigurationPropertyCollection.cs
- IODescriptionAttribute.cs
- ZipPackage.cs
- CodeAttributeArgument.cs
- CheckBox.cs
- DatasetMethodGenerator.cs
- Manipulation.cs