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
- ProjectionPlan.cs
- DeferrableContentConverter.cs
- FullTextBreakpoint.cs
- ReflectionPermission.cs
- GlobalAllocSafeHandle.cs
- BindingSource.cs
- SchemaImporterExtensionsSection.cs
- BrushValueSerializer.cs
- MsmqChannelFactory.cs
- HtmlTableCellCollection.cs
- CommandBinding.cs
- Point3DAnimation.cs
- ADMembershipProvider.cs
- RadioButtonList.cs
- TdsParserStateObject.cs
- Int32Converter.cs
- DefaultHttpHandler.cs
- OpCellTreeNode.cs
- GeneralTransformGroup.cs
- SqlConnectionManager.cs
- MsmqChannelListenerBase.cs
- CompiledQuery.cs
- DateTimeOffset.cs
- DateTimeOffsetAdapter.cs
- LogWriteRestartAreaAsyncResult.cs
- CellParagraph.cs
- SchemaImporterExtensionElementCollection.cs
- AppDomain.cs
- SafeRegistryHandle.cs
- SimpleWebHandlerParser.cs
- CodeSnippetCompileUnit.cs
- ReceiveActivity.cs
- NestPullup.cs
- UInt16.cs
- DbConnectionOptions.cs
- EditableTreeList.cs
- UseAttributeSetsAction.cs
- ToolTipService.cs
- NavigateUrlConverter.cs
- _ConnectOverlappedAsyncResult.cs
- ResourceProviderFactory.cs
- XmlnsCompatibleWithAttribute.cs
- EntityException.cs
- InvokePattern.cs
- RegistrySecurity.cs
- ClientApiGenerator.cs
- _LocalDataStore.cs
- LiteralText.cs
- GenericXmlSecurityTokenAuthenticator.cs
- TransformDescriptor.cs
- RequestQueryProcessor.cs
- ExtendedPropertyCollection.cs
- SpoolingTaskBase.cs
- ContextMenuAutomationPeer.cs
- DifferencingCollection.cs
- TripleDESCryptoServiceProvider.cs
- EntityCommandCompilationException.cs
- WindowHideOrCloseTracker.cs
- AppDomainUnloadedException.cs
- TrackingMemoryStream.cs
- EventlogProvider.cs
- COM2PictureConverter.cs
- ClientSponsor.cs
- SqlBulkCopyColumnMapping.cs
- UserControlAutomationPeer.cs
- DataSourceControlBuilder.cs
- HwndSourceKeyboardInputSite.cs
- Group.cs
- ZipArchive.cs
- SoundPlayerAction.cs
- VectorConverter.cs
- WebConvert.cs
- IPAddressCollection.cs
- DispatchChannelSink.cs
- SecurityRequiresReviewAttribute.cs
- FixedHyperLink.cs
- ConfigurationLocationCollection.cs
- EventHandlingScope.cs
- ImageCodecInfoPrivate.cs
- Thumb.cs
- ComponentGlyph.cs
- ProcessInfo.cs
- SizeAnimationUsingKeyFrames.cs
- ViewManagerAttribute.cs
- DeviceContext2.cs
- ToolStripControlHost.cs
- DataGridViewAdvancedBorderStyle.cs
- WorkflowService.cs
- FormViewUpdatedEventArgs.cs
- MetabaseSettings.cs
- PasswordRecoveryAutoFormat.cs
- HtmlInputText.cs
- UnsafeNativeMethodsTablet.cs
- CodeAssignStatement.cs
- ToolStripItemEventArgs.cs
- TabControl.cs
- InfoCardTrace.cs
- RotateTransform3D.cs
- CommonDialog.cs
- _ListenerRequestStream.cs