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
- DefaultSection.cs
- Activity.cs
- FontResourceCache.cs
- ProgressBarAutomationPeer.cs
- PageSettings.cs
- EntityAdapter.cs
- DynamicPropertyHolder.cs
- ButtonChrome.cs
- SettingsPropertyWrongTypeException.cs
- CircleHotSpot.cs
- SoapTypeAttribute.cs
- WindowsToolbar.cs
- TaiwanLunisolarCalendar.cs
- PrintDocument.cs
- EventItfInfo.cs
- ControlType.cs
- TreeChangeInfo.cs
- PrivilegeNotHeldException.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- EntryWrittenEventArgs.cs
- XamlDesignerSerializationManager.cs
- __Error.cs
- DataListItemEventArgs.cs
- IntersectQueryOperator.cs
- ConfigurationManagerInternalFactory.cs
- DbDeleteCommandTree.cs
- NetDispatcherFaultException.cs
- ToolBar.cs
- HttpProxyTransportBindingElement.cs
- PropertyHelper.cs
- DetailsView.cs
- _IPv6Address.cs
- LineBreakRecord.cs
- SerialStream.cs
- CodeStatement.cs
- NameNode.cs
- OperationAbortedException.cs
- SafeReadContext.cs
- TextRangeProviderWrapper.cs
- UserUseLicenseDictionaryLoader.cs
- UserPersonalizationStateInfo.cs
- CompositeScriptReferenceEventArgs.cs
- SecurityException.cs
- DefaultAsyncDataDispatcher.cs
- returneventsaver.cs
- TraceListener.cs
- SettingsContext.cs
- VirtualizingPanel.cs
- TabControlToolboxItem.cs
- DeviceContext.cs
- CodeArrayIndexerExpression.cs
- ForceCopyBuildProvider.cs
- _ProxyChain.cs
- WrappingXamlSchemaContext.cs
- Stroke2.cs
- DesignerValidationSummaryAdapter.cs
- Panel.cs
- SBCSCodePageEncoding.cs
- FixedBufferAttribute.cs
- BaseParagraph.cs
- AddInBase.cs
- TraceListener.cs
- TableCell.cs
- TextTreeTextElementNode.cs
- FixedPage.cs
- ResourceDescriptionAttribute.cs
- grammarelement.cs
- LoopExpression.cs
- WebPartConnectionCollection.cs
- SoapExtensionReflector.cs
- ErrorFormatterPage.cs
- CustomPopupPlacement.cs
- BindingRestrictions.cs
- FusionWrap.cs
- ItemCollection.cs
- CompositeActivityValidator.cs
- AnonymousIdentificationModule.cs
- EntityParameter.cs
- ReverseInheritProperty.cs
- MouseButton.cs
- ImageListImage.cs
- LineGeometry.cs
- PartBasedPackageProperties.cs
- InputBindingCollection.cs
- Rect.cs
- MethodCallTranslator.cs
- SiteMembershipCondition.cs
- RegexWorker.cs
- LambdaCompiler.Statements.cs
- WebPartConnectionsConnectVerb.cs
- DataSourceControl.cs
- ImageAttributes.cs
- EditorBrowsableAttribute.cs
- BrushMappingModeValidation.cs
- CellRelation.cs
- GridViewAutomationPeer.cs
- ReflectPropertyDescriptor.cs
- VoiceSynthesis.cs
- StringResourceManager.cs
- InputBindingCollection.cs