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
- DetailsViewActionList.cs
- FilteredXmlReader.cs
- _SecureChannel.cs
- JavaScriptSerializer.cs
- NegationPusher.cs
- AssemblyBuilder.cs
- GZipObjectSerializer.cs
- WebRequestModuleElement.cs
- TypeHelper.cs
- DataSourceCacheDurationConverter.cs
- DeobfuscatingStream.cs
- SelectingProviderEventArgs.cs
- Encoding.cs
- Expression.DebuggerProxy.cs
- SerializationObjectManager.cs
- AddInIpcChannel.cs
- ToolStripPanelRow.cs
- MarkupWriter.cs
- SymmetricKeyWrap.cs
- PermissionToken.cs
- RuleSettingsCollection.cs
- CompilationUtil.cs
- FixedTextContainer.cs
- ProjectionPruner.cs
- HtmlInputRadioButton.cs
- SpinWait.cs
- PropertyKey.cs
- DataGridBoolColumn.cs
- CacheSection.cs
- AddInContractAttribute.cs
- Expression.cs
- LineServicesRun.cs
- Clock.cs
- WebPartDisplayModeCollection.cs
- Activator.cs
- CodeNamespace.cs
- DecoderFallbackWithFailureFlag.cs
- MethodExecutor.cs
- UnionExpr.cs
- FormViewDeleteEventArgs.cs
- RectAnimationUsingKeyFrames.cs
- DataListItemEventArgs.cs
- AddressHeader.cs
- DropAnimation.xaml.cs
- IndicFontClient.cs
- XmlSchemaSubstitutionGroup.cs
- CodePageEncoding.cs
- LineBreak.cs
- StringFunctions.cs
- DbProviderManifest.cs
- VarRemapper.cs
- ApplicationServiceManager.cs
- LowerCaseStringConverter.cs
- CompModHelpers.cs
- HMACSHA256.cs
- CategoryGridEntry.cs
- Relationship.cs
- TransportManager.cs
- ScriptReference.cs
- PropertyInformationCollection.cs
- Avt.cs
- FontFamilyConverter.cs
- FileDialogCustomPlace.cs
- FlowLayoutPanel.cs
- CompiledIdentityConstraint.cs
- XmlSchemaValidator.cs
- ToolStripTextBox.cs
- SvcMapFileLoader.cs
- Literal.cs
- HtmlTitle.cs
- WebBrowsableAttribute.cs
- EventItfInfo.cs
- Brush.cs
- XmlILIndex.cs
- SingleKeyFrameCollection.cs
- DrawingServices.cs
- DataGridViewTextBoxCell.cs
- EntityDesignerDataSourceView.cs
- CustomGrammar.cs
- AppearanceEditorPart.cs
- TextEffectResolver.cs
- Site.cs
- __Filters.cs
- SortFieldComparer.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- DataGridViewColumnConverter.cs
- BufferedReadStream.cs
- ConstraintConverter.cs
- SafeNativeMethods.cs
- XmlDataSourceView.cs
- CollectionViewGroupRoot.cs
- Int32EqualityComparer.cs
- PolyLineSegment.cs
- PrivilegedConfigurationManager.cs
- counter.cs
- TerminatorSinks.cs
- SamlAuthorityBinding.cs
- WebWorkflowRole.cs
- InstanceNameConverter.cs