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
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ErrorWebPart.cs
- EDesignUtil.cs
- TextChangedEventArgs.cs
- FormatterServices.cs
- WebPartAuthorizationEventArgs.cs
- FigureHelper.cs
- OrderablePartitioner.cs
- SafeNativeMethodsOther.cs
- ErrorProvider.cs
- OleDbParameterCollection.cs
- PeerNodeTraceRecord.cs
- SmiEventSink_Default.cs
- HostedImpersonationContext.cs
- ProfilePropertySettings.cs
- DataContractSerializer.cs
- BevelBitmapEffect.cs
- BitmapEffectState.cs
- _DomainName.cs
- TrackingMemoryStream.cs
- WebPartEditVerb.cs
- _TimerThread.cs
- HiddenFieldPageStatePersister.cs
- OracleParameter.cs
- SQLBoolean.cs
- QilSortKey.cs
- ValidationRule.cs
- FixedTextSelectionProcessor.cs
- VirtualPathUtility.cs
- PrivilegeNotHeldException.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SectionUpdates.cs
- MissingManifestResourceException.cs
- LayoutInformation.cs
- DataProviderNameConverter.cs
- login.cs
- NullRuntimeConfig.cs
- Utils.cs
- BypassElementCollection.cs
- SqlServer2KCompatibilityAnnotation.cs
- AudioBase.cs
- HtmlForm.cs
- PartialCachingAttribute.cs
- WebPartDisplayModeCancelEventArgs.cs
- httpstaticobjectscollection.cs
- SessionSwitchEventArgs.cs
- OrthographicCamera.cs
- CatalogPartChrome.cs
- CapabilitiesUse.cs
- DataSourceExpression.cs
- ProfileEventArgs.cs
- XmlSchemas.cs
- ScriptModule.cs
- SchemaTableColumn.cs
- PathParser.cs
- XamlStyleSerializer.cs
- ClientProxyGenerator.cs
- newinstructionaction.cs
- ServicePointManagerElement.cs
- SpellerError.cs
- SchemaTableColumn.cs
- TabPage.cs
- TraceEventCache.cs
- ProfilePropertySettingsCollection.cs
- BaseValidator.cs
- DataControlImageButton.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DynamicPropertyReader.cs
- CommandExpr.cs
- FileLevelControlBuilderAttribute.cs
- TextSelectionHelper.cs
- XhtmlBasicValidatorAdapter.cs
- LassoHelper.cs
- WebEncodingValidatorAttribute.cs
- ApplicationException.cs
- ThrowOnMultipleAssignment.cs
- MDIControlStrip.cs
- ComponentChangingEvent.cs
- PartialClassGenerationTaskInternal.cs
- UnsafeNativeMethods.cs
- GlobalEventManager.cs
- InlineObject.cs
- GridViewDeletedEventArgs.cs
- FormViewPageEventArgs.cs
- IOException.cs
- XpsResource.cs
- ResourcePool.cs
- TableLayoutStyleCollection.cs
- DataGridViewRowPostPaintEventArgs.cs
- TraceRecord.cs
- HttpWriter.cs
- DataGridViewTopLeftHeaderCell.cs
- SecurityUtils.cs
- Intellisense.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TimeoutException.cs
- EncryptedPackageFilter.cs
- ClrPerspective.cs
- Boolean.cs
- StyleSheetComponentEditor.cs