Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OpenFileDialog.cs
- TextProperties.cs
- ListenerElementsCollection.cs
- LoginCancelEventArgs.cs
- XmlObjectSerializerReadContext.cs
- PersonalizationStateInfo.cs
- CodeGenerator.cs
- TransformationRules.cs
- _ScatterGatherBuffers.cs
- PropertyDescriptorCollection.cs
- SqlProviderManifest.cs
- ClaimComparer.cs
- PathGeometry.cs
- RectAnimationClockResource.cs
- columnmapfactory.cs
- columnmapkeybuilder.cs
- MobileResource.cs
- DrawToolTipEventArgs.cs
- DataComponentMethodGenerator.cs
- HttpPostProtocolImporter.cs
- Application.cs
- EasingFunctionBase.cs
- FilteredAttributeCollection.cs
- OracleColumn.cs
- HtmlControlPersistable.cs
- GeneralTransform3D.cs
- CustomLineCap.cs
- XmlAnyElementAttribute.cs
- FileRecordSequenceCompletedAsyncResult.cs
- DataGridAddNewRow.cs
- ToolStripDropDownItem.cs
- StylusDownEventArgs.cs
- ReadOnlyDictionary.cs
- Vector3D.cs
- SafeFindHandle.cs
- ADConnectionHelper.cs
- Choices.cs
- IFlowDocumentViewer.cs
- XmlSerializationGeneratedCode.cs
- DataGridViewRow.cs
- HttpRequestWrapper.cs
- Opcode.cs
- WebDescriptionAttribute.cs
- Int64Converter.cs
- CleanUpVirtualizedItemEventArgs.cs
- SchemaDeclBase.cs
- InlineObject.cs
- DigestTraceRecordHelper.cs
- ResizeGrip.cs
- UriWriter.cs
- DateTimeStorage.cs
- X509ChainElement.cs
- DataKey.cs
- EntityViewGenerationAttribute.cs
- ContainerFilterService.cs
- TimeSpanStorage.cs
- HotSpotCollection.cs
- EventEntry.cs
- MapPathBasedVirtualPathProvider.cs
- RolePrincipal.cs
- messageonlyhwndwrapper.cs
- MultiByteCodec.cs
- DrawingCollection.cs
- WebPartMenuStyle.cs
- ScriptReferenceBase.cs
- Expressions.cs
- Ray3DHitTestResult.cs
- ImageCodecInfoPrivate.cs
- HandledMouseEvent.cs
- ServicesSection.cs
- TableCellCollection.cs
- XmlCodeExporter.cs
- CodeSnippetExpression.cs
- XmlILTrace.cs
- DetailsViewRow.cs
- ExitEventArgs.cs
- BinHexEncoder.cs
- SymbolPair.cs
- XhtmlBasicSelectionListAdapter.cs
- EntityDataSourceColumn.cs
- DataControlCommands.cs
- WrappedKeySecurityToken.cs
- TextBoxAutomationPeer.cs
- Select.cs
- TraceFilter.cs
- _BufferOffsetSize.cs
- ColorPalette.cs
- MultipartIdentifier.cs
- SqlDependencyListener.cs
- XmlImplementation.cs
- NetNamedPipeBinding.cs
- EntitySqlQueryBuilder.cs
- XmlAttributeProperties.cs
- TemplateBuilder.cs
- SqlDataSourceView.cs
- infer.cs
- TimeSpanHelper.cs
- MarkupWriter.cs
- NameTable.cs
- FusionWrap.cs