MultiRow discovery Tour (3)-template manager and Table

Source: Internet
Author: User
Document directory
  • Create Table
  • Understanding Table
  • Table mode
  • Cell Mode
  • MultiRow download, installation, and other
Previous review

MultiRow discovery Tour (1)-efficient template designer

MultiRow discovery Tour (2)-Detailed description of the property manager

Template Manager

When there are many cells in the template, you will often be dazzled. In this case, "template manager" is particularly useful. Click the first button in the toolbar, the "template manager" tool window can be opened by clicking "View"> "other Windows"> "template Manager 6.0" in the Visual Studio menu, "Property Manager" and "NamedCellStyle manager" are similar ):

This is a standard Visual Studio tool window, so you can place it anywhere. For example, the "Solution Explorer" window is docked on the right side of Visual Studio and on the top of the "properties" window.

The template manager is similar to the Document Outline window of Visual Studio. It has four main functions:

1. In this window, you can view all elements in the current Template (Template \ Section \ Cell) and their relationships. All elements in the window are arranged according to their parent-child relationship and index order.

2. Select an element and right-click it to cut, delete, or rename the element.

3. Click the up arrow and down arrow on the toolbar in the window to change the Cell index. Of course, you can drag the Cell directly to the index location you want, or even other sections.

4. Click the "Settings" button on the rightmost of the toolbar to configure the MultiRow template designer. Click "Tools"> "options" in the Visual Studio menu to open the "options" dialog box and click "options" on the left. select "MultiRow 6 .. 0 template designer ).

The MultiRow template designer's appearance and Operation Method settings are provided here. For example, you can set the Cell alignment mode to Grid. At this time, the Section background will display some Alignment Points. When you drag and drop elements, elements are adsorbed on the point rather than on other elements.

 

Table

The biggest feature of MultiRow is its free layout. Therefore, the operation of the MultiRow template designer is in Cell units like that of the Form Designer. However, most of the time, there is a large area in the middle of the template that you need is a regular standard table. If you want to splice such a table one by one Cell, isn't it too much trouble? It doesn't matter. The MultiRow template designer has long considered your use case and provided a package solution, which is "Table ".

Create Table

Create a new blank template, open the design-time component 6.0 tab in the toolbox, and select Table ":

Then, press the left mouse button on the Row, pull out an area, and then let it go to see what happened?

Understanding Table

Table is a concept that exists only during design. It is actually a bunch of discrete cells during runtime, while Table only manages these cells as a whole. At this time, table has the concept of rows and columns. The Cell in the Table must be aligned with the row/column in the Table.

Table mode

When you click Table, the Table enters another editing mode-Table mode:

In this mode, the Table seems to be separated from the outside world. Your operations on the Table will regard the Table as the context environment. For example, if you press the 'tab 'key, it will only loop inside the Table. If you press 'ctrl' + 'A', only all cells in the Table will be selected.

Once you enter the table mode, the table will display the virtual row header and column header. You can select one or more rows/columns as you would in Excel to adjust their height/width, you can also set their width/height in the "properties" window. You can also right-click the menu to perform more complex operations, such as inserting a column:

Have you noticed that there are "merge" and "split" menu items on the right-click menu? That's right. Table can merge/split cells like Excel:

The cells in the table are textboxcell by default. If you need other types of cells, you can use the right-click menu to replace the cells you choose with other types (similarly, you can also replace the cells outside the table ). The new cell only retains the attribute values of the base cell, and the special attribute values on the old cell will be discarded.

For example, if you set a value for both the maxlength and readonly attributes of a textboxcell and replace it with comboboxcell, even though comboboxcell also has the maxlength attribute, however, because the maxlength attribute is not defined on the base class cell, the maxlength of comboboxcell will retain the default value, but the readonly attribute will be consistent with the old textboxcell.

The cell in the table can also be deleted. The deleted area is displayed in a gray grid pattern, and the deleted area can be selected. After selection, you can use the "replace" operation to re-place the cell.

One of the most convenient ways to use table is to set the outer circle border: Press 'control' + 'A' to select all cells in the table, or select a cell in the rectangular area, right-click the "border" menu item in the menu, and the "border" editor will pop up. Select "Border border" or "normal border" for the border type, note: What is the difference between the comparison and the "border" editor popped up elsewhere?

Yes, this editor has an internal button. For multirow, each cell is an independent unit, so the cell has only an outer border and no internal border; even if you place the cell close together in a table and set a border, the pop-up border editor does not have the "internal" button.

Set the border according to the style, click the area outside the table to see what the border looks like, the color, line type, and angle of each side of the border in multirow can be set separately ):

Cell Mode

After you click the area outside the table or cell to exit table mode, the table enters the cell mode.

In this case, the designer regards the table as a whole element. You can understand it as forming all cells in the table for processing. Operations on the table will affect all cells in the table. You can cut, copy, paste, and resize a cell.

Adjusting the table size will enable proportional scaling of the table. However, because the cell size is an integer, it may cause the original size of the cell to be scaled and then the size will be different:

The cell in the third row is 1 pixel higher than that in the first and second rows.

In cell mode, click around the edge of the table (about five pixel, the cursor will change to sizeall with arrows in four directions) to select the entire table. In this case, dragging will move the entire table. The right-click menu will have a menu item "split into free cells" more than other cells, and click it, the entire table will be split into free cells:

Note: The split cell cannot be combined into a table again unless you use the "undo" operation or recreate a table.

 

MultiRow download, installation, and other

Installation Package download: http://gcdn.grapecity.com/showtopic-786.html

NOTE 1: The trial period is 20 days instead of 30 days. This will help you arrange the trial time.

Note 2: The multirow template designer is automatically installed when multirow is installed. Since the installer will reconfigure all the Visual Studio in your system, if you have installed many Visual Studio in your system, the installation process may take several minutes.

NOTE 3: Make sure that your Visual Studio is Visual Studio SP1 and later. The MultiRow template designer cannot work on Visual Studio Express Edition.

If you have any questions, have any suggestions, or have found a Bug, welcome to the MultiRow official forum question: http://gcdn.grapecity.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.