An instance of the ButtonPartClass class represents a button part.
Cells can contain one or several push buttons (instances of the ButtonPartClass). Each button can operate independently with its own attributes and properties.
A push button can contain an image or text (not both).
The Action event can be used to handle a button click.
If the Action event is used, the ItemClick event is not raised.
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET
Inheritance
public class ButtonPartClass : Softelvdm.Controls.GenericPartClass;
Public Class ButtonPartClass
Inherits Softelvdm.Controls.GenericPartClass![]() | ButtonPartClass | Initializes a new instance of the ButtonPartClass class. |
![]() ![]() | Angle | Defines the rotation of the part. |
![]() | Appearance | Defines the button appearance. |
![]() | Enabled | Defines whether the button is enabled. |
![]() | Font | Defines the button's text font. |
![]() | ForeColor | Defines the button's text color. |
![]() ![]() | HAlign | Defines the horizontal alignment within the part's available space. |
![]() | Image | Defines the button image. |
![]() ![]() | Orientation | Returns the orientation of parts within a cell. This is defined by the cell or the owner of the cell. |
![]() ![]() | PartAlignment | Defines the part alignment of this part relative to its container and other parts. |
![]() ![]() | PartOwner | Returns the owner of the part, usually an object derived from CellBaseClass. |
![]() | Pressed | Defines whether the button is currently pressed. |
![]() ![]() | TagObject | Defines application-specific data. |
![]() ![]() | TagString | Defines an application-specific string. |
![]() | Text | Defines the button text. |
![]() | Toggle | Defines whether the button is a toggle button. |
![]() ![]() | VAlign | Defines the vertical alignment within the part's available space. |
![]() ![]() | VisibleAppearance | Returns the visibility status of the part. |
![]() ![]() | CalcRotatedSize | Calculates the size of the smallest rectangle that can contain the rotated rectangle of a given size, based on the part's GenericPartClass.Angle property. |
![]() | CalcSize | Calculates the size of the part. |
![]() ![]() | CalcUnrotatedBaseWidth | Calculates the actual width of the part, based on the width of the rotated part's containing rectangle. |
![]() ![]() | ConsiderForOutline | Defines whether the part is considered when calculating the outline rectangle of a cell. |
![]() | Copy | Creates an identical copy of the part. |
![]() ![]() ![]() | CopyPart | Copies information from one part to another. |
![]() ![]() | Equals | Determines whether the specified object is equal to the current object. |
![]() ![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. |
![]() ![]() | GetHashCode | Serves as the default hash function. |
![]() ![]() | GetType | Gets the Type of the current instance. |
![]() ![]() | GetVisible | Returns the current visibility status of a part, based on the part's GenericPartClass.VisibleAppearance property. |
![]() ![]() | MemberwiseClone | Creates a shallow copy of the current Object. |
![]() ![]() | OnContentChanged | Called when the contents of the part changed. |
![]() ![]() ![]() | ReferenceEquals | Determines whether the specified Object instances are the same instance. |
![]() | StrategyRoutine | Used to perform various actions the part supports, like rendering the part, hit-testing, determining its position and responding to mouse button clicks. |
![]() ![]() | ToString | Returns a string that represents the current object. |
![]() ![]() | Action | Occurs when a part's action is triggered by the user. |
ToolTipClass.ShowToolTip(sftTree1, loc, ttIcon, title, text, ArrowLoc);
}
private void sftTree1_ItemClick(object sender, ItemClickEventArgs e) {
if (e.Item != null && e.Cell != null) {
if (e.Item.UsageLocation == UsageLocationEnum.footer &&
e.Area == ItemClickAreaEnum.Cell &&
e.Item.VisibleIndex == 0 && e.Cell.ColumnIndex == 2 &&
e.Part is ButtonPartClass) {
try {
System.Diagnostics.Process.Start("http://www.softelvdm.com/treenet.html");
} catch {
}
}
}
}
ToolTipClass.ShowToolTip(sftTree1, loc, ttIcon, title, text, ArrowLoc)
End Sub
Private Sub sftTree1_ItemClick(ByVal sender As System.Object, ByVal e As Softelvdm.SftTreeNET.ItemClickEventArgs) Handles sftTree1.ItemClick
If Not e.Item Is Nothing And Not e.Cell Is Nothing Then
If e.Item.UsageLocation = UsageLocationEnum.footer And _
e.Area = ItemClickAreaEnum.Cell And _
e.Item.VisibleIndex = 0 And e.Cell.ColumnIndex = 2 And _
TypeOf e.Part Is ButtonPartClass Then
Try
System.Diagnostics.Process.Start("http://www.softelvdm.com/treenet.html")
Catch ex As Exception
End Try
End IfSee Also Classes | SftTree/NET 3.0