FlexPivot for WinForms
BuildString() メソッド
使用例 

C1.Win.C1FlexGrid.4.5.2 アセンブリ > C1.Win.C1FlexGrid 名前空間 > CellStyle クラス > BuildString メソッド : BuildString() メソッド
Returns a compact string representation of this CellStyle.
シンタックス
'宣言
 
Public Overloads Function BuildString() As System.String
public System.string BuildString()

戻り値の型

A string containing the settings of all style elements defined in this CellStyle.
解説

This method is used to persist grid styles and can be used to define and save 'skins'.

See the CellStyleCollection.BuildString and CellStyleCollection.ParseString methods.

The string returned contains definitions only for the style elements that are defined by this CellStyle. Elements inherited from other styles are not included. To build a string containing specific elements, use the BuildString(StyleElementFlags) method instead.

使用例
The code below creates a style with a custom font and background color and builds a string that represents the new style. Then it uses the string to initialize a second style.
// create style with custom font and back color
CellStyle cs = _flex.Styles.Add("s1");
cs.Font = new Font("Arial", 12, FontStyle.Bold);
cs.BackColor = Color.Beige;
            
// save style definition into a string
string styleDef = cs.BuildString();
            
// use string to initialize another style
CellStyle csNew = _flex.Styles.Add("s2");
csNew.ParseString(styleDef);
            
// compare styles
Debug.Assert(csNew.Font.Equals(cs.Font));
Debug.Assert(csNew.BackColor.Equals(cs.BackColor));
参照

CellStyle クラス
CellStyle メンバ
オーバーロード一覧