Sunday, January 2, 2011

FlexManager class of LinsUI Layout Manager 2.1

It is a static class which controls UI settings’ import/export.
§      Members
1)  public static bool ImportFormsLayout{ get; set; }      
Remarks
When execute import operation, if this member is true, the application will import all FlexForm objects’ layout settings; otherwise, it will not.

2)  public static bool ImportPanelsLayout{ get; set; }           
Remarks
When execute import operation, if this member is true, the application will import all FlexPanel objects’ layout settings; otherwise, it will not.

3)  public static bool ImportMenuStripsLayout{ get; set; }       
Remarks
When execute import operation, if this member is true, the application will import all LinsMenuStrip objects’ layout settings; otherwise, it will not.

4)  public static bool ImportToolStripsLayout{ get; set; }       
Remarks
When execute import operation, if this member is true, the application will import all FlexToolStrip objects’ layout settings; otherwise, it will not.

5)  public static StringAlignment CaptionAlignment{ get; set; }        
Remarks
Get or set the caption alignment for all panels and forms.

6)  public static string DefaultIconsPath{ get; set; }           
Remarks
Get or set the default path for all displayed icons of all tool items.

§      Methods
1)  public static LinsMenuStrip QueryMenuStrip(
long nID,
bool bCreateIfNotExisted )                
Parameters
nID
Type: long
The unique ID of the menustrip inquired.

bCreateIfNotExisted
Type: bool
If true, it will create the menustrip if it has not been created.

Return
It returns the LinsMenuStrip object whose unique ID is nID.

2)  public static FlexToolStrip QueryToolStrip(
long nID,
bool bCreateIfNotExisted )                
Parameters
nID
Type: long
The unique ID of the toolstrip inquired.

bCreateIfNotExisted
Type: bool
If truem it will create the toolstrip if it has not been created.

Return
It returns the FlexToolStrip object whose unique ID is nID.

3)  public static ToolStripItem QueryToolStripItem(
long nID )           
Parameters
nID
Type: long
The unique ID of the tool item inquired.

Return
It returns the ToolStripItem object whose unique ID is nID. It returns null, if there is no any such ToolStripItem object.

No comments:

Post a Comment