Code:
/ FX-1434 / FX-1434 / 1.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
- DescendentsWalker.cs
- Popup.cs
- CompositeFontFamily.cs
- PropertyEntry.cs
- NativeMethods.cs
- XmlSchemaExporter.cs
- DataGridCommandEventArgs.cs
- SqlFileStream.cs
- DocumentGrid.cs
- WebPartRestoreVerb.cs
- CssClassPropertyAttribute.cs
- TriggerAction.cs
- BitmapEffectInputData.cs
- UserNamePasswordValidator.cs
- DoubleAnimation.cs
- OrderToken.cs
- ICspAsymmetricAlgorithm.cs
- CircleHotSpot.cs
- EventManager.cs
- SHA1.cs
- TextTreeObjectNode.cs
- ClientTarget.cs
- PixelFormatConverter.cs
- TrimSurroundingWhitespaceAttribute.cs
- MatchingStyle.cs
- ToolStripArrowRenderEventArgs.cs
- StreamReader.cs
- CellRelation.cs
- IsolatedStoragePermission.cs
- JsonWriterDelegator.cs
- Inflater.cs
- TextBlockAutomationPeer.cs
- CoreSwitches.cs
- CounterSet.cs
- ByteStorage.cs
- RectangleHotSpot.cs
- ReferentialConstraint.cs
- Boolean.cs
- TriggerActionCollection.cs
- WSIdentityFaultException.cs
- WebHttpElement.cs
- StrokeNodeEnumerator.cs
- HttpResponse.cs
- FormsAuthenticationModule.cs
- BaseTemplatedMobileComponentEditor.cs
- SamlSubject.cs
- DescendentsWalker.cs
- OperationPickerDialog.cs
- ParserHooks.cs
- WriteTimeStream.cs
- TypeLoadException.cs
- XmlSchemaAll.cs
- CodeCompileUnit.cs
- CryptoStream.cs
- HtmlWindowCollection.cs
- GlyphInfoList.cs
- DataGridItemAttachedStorage.cs
- RTLAwareMessageBox.cs
- IgnoreFileBuildProvider.cs
- ProtocolsConfigurationHandler.cs
- BindUriHelper.cs
- Constraint.cs
- Style.cs
- PreservationFileReader.cs
- XmlSchemaSimpleTypeUnion.cs
- invalidudtexception.cs
- OleDbPropertySetGuid.cs
- Converter.cs
- WeakHashtable.cs
- PolyBezierSegment.cs
- PropertyChangingEventArgs.cs
- XsdBuilder.cs
- ConnectionConsumerAttribute.cs
- RubberbandSelector.cs
- AsymmetricKeyExchangeDeformatter.cs
- WorkflowDurableInstance.cs
- TableCellCollection.cs
- Parallel.cs
- GlyphRunDrawing.cs
- WindowsGraphicsWrapper.cs
- RelationshipFixer.cs
- XmlSchemaValidationException.cs
- SpecialFolderEnumConverter.cs
- MimeAnyImporter.cs
- ProjectionAnalyzer.cs
- RegexCode.cs
- CharAnimationBase.cs
- SecurityHeader.cs
- PropertyOverridesDialog.cs
- DefaultWorkflowSchedulerService.cs
- unsafenativemethodstextservices.cs
- XamlReaderConstants.cs
- Comparer.cs
- TypeUsage.cs
- RepeaterItemCollection.cs
- HostedAspNetEnvironment.cs
- ElementFactory.cs
- ChangeTracker.cs
- DataGridViewCellStyleEditor.cs
- MetadataItemCollectionFactory.cs