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
- DataRowComparer.cs
- SizeAnimation.cs
- UnionExpr.cs
- CollectionMarkupSerializer.cs
- DbProviderSpecificTypePropertyAttribute.cs
- ExtensibleClassFactory.cs
- ErrorHandlerFaultInfo.cs
- ListChangedEventArgs.cs
- AccessDataSource.cs
- AuthenticatingEventArgs.cs
- WebPageTraceListener.cs
- wgx_commands.cs
- SkipStoryboardToFill.cs
- WebPartMinimizeVerb.cs
- AssemblyFilter.cs
- BufferedGraphics.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- AnonymousIdentificationModule.cs
- AssemblyHash.cs
- ItemsPresenter.cs
- URI.cs
- SettingsPropertyCollection.cs
- SqlDataSourceCommandEventArgs.cs
- ExtendedProtectionPolicy.cs
- RunWorkerCompletedEventArgs.cs
- ColumnResult.cs
- StringToken.cs
- IsolatedStorage.cs
- HttpContext.cs
- SpeechUI.cs
- Calendar.cs
- FileRecordSequence.cs
- XmlNodeList.cs
- IsolatedStorageFilePermission.cs
- MessageBuilder.cs
- TraceListeners.cs
- ComponentEditorForm.cs
- ColorConverter.cs
- ClickablePoint.cs
- TriggerActionCollection.cs
- DateTimeStorage.cs
- TrackingParameters.cs
- TrackBarRenderer.cs
- OdbcStatementHandle.cs
- EncoderBestFitFallback.cs
- ListBox.cs
- SafeNativeMethods.cs
- FigureHelper.cs
- ControlIdConverter.cs
- SizeIndependentAnimationStorage.cs
- DynamicDocumentPaginator.cs
- CacheHelper.cs
- Group.cs
- ContextProperty.cs
- HtmlInputCheckBox.cs
- Configuration.cs
- Completion.cs
- FileDialog.cs
- XmlWellformedWriter.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- IItemContainerGenerator.cs
- StreamGeometry.cs
- EditCommandColumn.cs
- TypeNameConverter.cs
- ConstraintConverter.cs
- ResourceWriter.cs
- SqlDataSource.cs
- RoleServiceManager.cs
- CodeTypeMember.cs
- TimerTable.cs
- SoapCommonClasses.cs
- RemoteWebConfigurationHostServer.cs
- DynamicILGenerator.cs
- XmlImplementation.cs
- CookielessData.cs
- BitmapDownload.cs
- TextRange.cs
- EmptyTextWriter.cs
- ZeroOpNode.cs
- TcpClientSocketManager.cs
- DateTimePicker.cs
- EllipseGeometry.cs
- XmlWrappingWriter.cs
- Menu.cs
- sqlcontext.cs
- FormCollection.cs
- TextClipboardData.cs
- ControlDesigner.cs
- AllowedAudienceUriElement.cs
- TraceContext.cs
- PasswordBoxAutomationPeer.cs
- CodeTypeDelegate.cs
- SweepDirectionValidation.cs
- CustomErrorsSectionWrapper.cs
- UnlockCardRequest.cs
- DbConnectionPoolGroup.cs
- TransformerInfo.cs
- XmlSchemaDatatype.cs
- QilTernary.cs
- FailedToStartupUIException.cs