Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // //----------------------------------------------------------------------------- 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
- HttpCapabilitiesEvaluator.cs
- SqlError.cs
- NavigationWindow.cs
- BamlCollectionHolder.cs
- SqlConnectionStringBuilder.cs
- FormsAuthentication.cs
- BufferedWebEventProvider.cs
- UInt32Storage.cs
- SafeNativeMethodsMilCoreApi.cs
- Frame.cs
- DispatcherObject.cs
- RewritingProcessor.cs
- LockRecursionException.cs
- OracleBFile.cs
- CellCreator.cs
- ErrorWrapper.cs
- LayoutManager.cs
- PrimaryKeyTypeConverter.cs
- HtmlHead.cs
- CharAnimationBase.cs
- ByteAnimationBase.cs
- AlphabeticalEnumConverter.cs
- DataGridCheckBoxColumn.cs
- DataServiceKeyAttribute.cs
- AsymmetricSignatureDeformatter.cs
- CharEntityEncoderFallback.cs
- VariableAction.cs
- WorkflowRuntimeSection.cs
- _HeaderInfo.cs
- WindowsListViewSubItem.cs
- FlowLayoutSettings.cs
- SpotLight.cs
- DataContractSerializerOperationFormatter.cs
- EmulateRecognizeCompletedEventArgs.cs
- RelationalExpressions.cs
- DataPointer.cs
- DesignBindingPropertyDescriptor.cs
- ServiceOperationListItemList.cs
- PriorityRange.cs
- DataGridClipboardHelper.cs
- ApplicationActivator.cs
- ItemCheckedEvent.cs
- GlyphingCache.cs
- WinFormsSecurity.cs
- RijndaelManaged.cs
- SimpleType.cs
- DataComponentMethodGenerator.cs
- UseManagedPresentationBindingElementImporter.cs
- While.cs
- BrowserDefinitionCollection.cs
- Triangle.cs
- ResourceManager.cs
- WebPartsPersonalizationAuthorization.cs
- WebControlsSection.cs
- OptimizedTemplateContentHelper.cs
- Cursor.cs
- SamlAuthenticationClaimResource.cs
- FileRecordSequenceCompletedAsyncResult.cs
- List.cs
- followingquery.cs
- Marshal.cs
- DecimalConstantAttribute.cs
- ContextMenuAutomationPeer.cs
- RegexCompilationInfo.cs
- EUCJPEncoding.cs
- GridProviderWrapper.cs
- UserPreferenceChangingEventArgs.cs
- ValidationPropertyAttribute.cs
- ReadOnlyHierarchicalDataSource.cs
- CmsInterop.cs
- coordinatorfactory.cs
- HatchBrush.cs
- AQNBuilder.cs
- SessionState.cs
- DocumentViewerBaseAutomationPeer.cs
- WebPartUserCapability.cs
- MetaType.cs
- Activator.cs
- GPPOINT.cs
- EntityDataSourceDataSelectionPanel.cs
- baseaxisquery.cs
- CacheVirtualItemsEvent.cs
- RsaSecurityKey.cs
- SoapIgnoreAttribute.cs
- Pts.cs
- PerfCounters.cs
- XmlNavigatorFilter.cs
- PageContent.cs
- DateTimeConverter.cs
- StatusStrip.cs
- While.cs
- XamlStream.cs
- PrivilegedConfigurationManager.cs
- MediaElement.cs
- PackageRelationshipCollection.cs
- PanelStyle.cs
- Validator.cs
- SqlDataSourceCommandEventArgs.cs
- SessionPageStatePersister.cs
- FunctionNode.cs