Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- PartitionResolver.cs
- ScriptRef.cs
- Rect.cs
- ModulesEntry.cs
- SharedRuntimeState.cs
- UIPermission.cs
- OdbcEnvironmentHandle.cs
- TraceData.cs
- InternalCache.cs
- GeometryCombineModeValidation.cs
- PriorityItem.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- QuaternionKeyFrameCollection.cs
- PeerNameRegistration.cs
- lengthconverter.cs
- MouseGestureConverter.cs
- Int16Animation.cs
- VScrollBar.cs
- HttpWebResponse.cs
- SourceInterpreter.cs
- SettingsBase.cs
- BoolLiteral.cs
- COM2ComponentEditor.cs
- ToolStripPanelCell.cs
- WindowsAuthenticationEventArgs.cs
- MsmqUri.cs
- DbDeleteCommandTree.cs
- SqlBulkCopyColumnMapping.cs
- FutureFactory.cs
- StatusBarPanel.cs
- SqlDataSourceSelectingEventArgs.cs
- DataMemberConverter.cs
- AuthenticatedStream.cs
- BaseTemplateParser.cs
- View.cs
- DataSourceDesigner.cs
- PathFigure.cs
- DataGridPagerStyle.cs
- EntityContainerEmitter.cs
- dbdatarecord.cs
- TableLayout.cs
- RegexFCD.cs
- CodeStatementCollection.cs
- PriorityRange.cs
- RotateTransform.cs
- SkipStoryboardToFill.cs
- PageHandlerFactory.cs
- SystemPens.cs
- DocumentViewerBaseAutomationPeer.cs
- InteropBitmapSource.cs
- DispatcherTimer.cs
- RequestQueue.cs
- IPPacketInformation.cs
- CancelEventArgs.cs
- SourceFilter.cs
- Compiler.cs
- DoubleConverter.cs
- PageAdapter.cs
- SecurityAttributeGenerationHelper.cs
- AspNetCompatibilityRequirementsAttribute.cs
- ArraySegment.cs
- XmlReturnReader.cs
- PerspectiveCamera.cs
- DataStorage.cs
- AssemblyAttributes.cs
- ResolvedKeyFrameEntry.cs
- DbConnectionPoolOptions.cs
- CodeCompiler.cs
- StyleXamlParser.cs
- StrongNameSignatureInformation.cs
- InternalControlCollection.cs
- BindingsSection.cs
- DataControlFieldCollection.cs
- TableLayoutCellPaintEventArgs.cs
- Type.cs
- SoapSchemaMember.cs
- ExtenderControl.cs
- DetailsViewDeletedEventArgs.cs
- EncryptedKey.cs
- DodSequenceMerge.cs
- ResourceReferenceKeyNotFoundException.cs
- CalloutQueueItem.cs
- FileLogRecordEnumerator.cs
- SqlOuterApplyReducer.cs
- DynamicExpression.cs
- ToolStripRenderEventArgs.cs
- ElementHost.cs
- SamlAttribute.cs
- DesigntimeLicenseContext.cs
- MaterializeFromAtom.cs
- SqlDependencyListener.cs
- XmlDictionaryString.cs
- EFColumnProvider.cs
- StringUtil.cs
- EnumBuilder.cs
- RpcAsyncResult.cs
- FieldDescriptor.cs
- ToolStripManager.cs
- BaseValidator.cs
- ExceptionValidationRule.cs