Hide

SftTree/NET 2.0 - Tree Control for Windows Forms

Display
Print

MergeStyleEnum Enumeration

Defines the merge style used by cells.

Class: (none)
Namespace: Softelvdm.Controls
Assembly: Softelvdm.SftTreeNET

Syntax

public enum MergeStyleEnum;
Public Enum MergeStyleEnum

Values

NameDescription
EmptyCellsAdjacent empty cells are used for cell merging.
SameTextAdjacent cells with identical Text property are used for cell merging.

Comments

Defines the merge style used by cells.

The SoftelvdmUserControl.MergeStyle property uses this enumeration.

Examples

C#

namespace WindowsApplication1 {
    public partial class MergeSample1 : Form {
        public MergeSample1() {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e) {
            // This sample demonstrates cell merging. In this sample, vertical merging
            // is based on empty subordinate cells (MergeStyle = MergeStyleEnum.EmptyCells).
            // To prepare for this sample, create a new project with a blank form and add
            // a SftTree/NET control named sftTree1.
            // In addition, adjust the following FromFile method to use a (small) bitmap
            // that is located on your system.
            Image img = Bitmap.FromFile("..\\..\\test.gif");
            CellClass cell;

VB.NET

Imports System.Reflection
Imports Softelvdm.Controls
Imports Softelvdm.SftTreeNET

Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
    ' This sample demonstrates cell merging. In this sample, vertical merging
    ' is based on empty subordinate cells (MergeStyle = MergeStyleEnum.EmptyCells).
    ' To prepare for this sample, create a new project with a blank form and add
    ' a SftTree/NET control named sftTree1.
    ' In addition, adjust the following FromFile method to use a (small) bitmap
    ' that is located on your system.
    Dim img As Image = Bitmap.FromFile("..\\..\\test.gif")
    Dim cell As CellClass

See Also | Classes | SftTree/NET 2.0