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
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- PackageStore.cs
- ReadOnlyNameValueCollection.cs
- MembershipValidatePasswordEventArgs.cs
- NGCSerializer.cs
- FocusTracker.cs
- CmsInterop.cs
- DbQueryCommandTree.cs
- ProfileGroupSettings.cs
- Condition.cs
- ExtenderProviderService.cs
- NonVisualControlAttribute.cs
- XmlLoader.cs
- TargetConverter.cs
- HostProtectionPermission.cs
- Int64AnimationBase.cs
- SecurityCookieModeValidator.cs
- AudioSignalProblemOccurredEventArgs.cs
- XsdDateTime.cs
- CollectionViewGroupRoot.cs
- LiteralTextContainerControlBuilder.cs
- SystemPens.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- SerTrace.cs
- QueryableDataSourceEditData.cs
- BinaryObjectReader.cs
- TemplateBamlTreeBuilder.cs
- SqlColumnizer.cs
- HttpSysSettings.cs
- AnnotationHighlightLayer.cs
- DataRowExtensions.cs
- SpellerInterop.cs
- FormView.cs
- TextTabProperties.cs
- Transform.cs
- Soap12FormatExtensions.cs
- WindowsPen.cs
- DataGridViewCellEventArgs.cs
- PageThemeCodeDomTreeGenerator.cs
- InternalPermissions.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- PropertyChangingEventArgs.cs
- SourceLocationProvider.cs
- LayoutManager.cs
- EntityDesignerBuildProvider.cs
- WpfMemberInvoker.cs
- SiteMembershipCondition.cs
- DataGridPageChangedEventArgs.cs
- DynamicResourceExtensionConverter.cs
- OracleLob.cs
- SafeNativeMethods.cs
- UpdatePanelTriggerCollection.cs
- SiteOfOriginContainer.cs
- ClaimTypes.cs
- Metadata.cs
- WebProxyScriptElement.cs
- WindowsSecurityTokenAuthenticator.cs
- BitmapEffectDrawingContextWalker.cs
- ObjectComplexPropertyMapping.cs
- HtmlUtf8RawTextWriter.cs
- DoWorkEventArgs.cs
- WebPartConnectionsCancelEventArgs.cs
- ScriptingWebServicesSectionGroup.cs
- TypeConverterMarkupExtension.cs
- XPathMultyIterator.cs
- ProfilePropertySettingsCollection.cs
- _StreamFramer.cs
- GenericXmlSecurityToken.cs
- CallbackHandler.cs
- Site.cs
- TypeUtils.cs
- _ConnectStream.cs
- LocalFileSettingsProvider.cs
- DataBoundControl.cs
- Symbol.cs
- CompositeScriptReferenceEventArgs.cs
- DataGridCellAutomationPeer.cs
- MemberAccessException.cs
- SmtpReplyReader.cs
- TrackBar.cs
- DataGridViewCellLinkedList.cs
- RegistryKey.cs
- EntityKeyElement.cs
- ColorMap.cs
- Metadata.cs
- DrawingAttributesDefaultValueFactory.cs
- MouseGestureConverter.cs
- BuildTopDownAttribute.cs
- HttpCapabilitiesEvaluator.cs
- SizeConverter.cs
- BindingRestrictions.cs
- SettingsPropertyCollection.cs
- XamlHostingConfiguration.cs
- WriteTimeStream.cs
- SchemaImporterExtensionsSection.cs
- SatelliteContractVersionAttribute.cs
- SerializationStore.cs
- StrongNameUtility.cs
- XmlWriter.cs
- DataViewSetting.cs