C1.Win.C1FlexGrid Namespace > CellStyle Class > BuildString Method : BuildString(StyleElementFlags) Method |
'Declaration
Public Overloads Function BuildString( _ ByVal elements As StyleElementFlags _ ) As String
'Usage
Dim instance As CellStyle Dim elements As StyleElementFlags Dim value As String value = instance.BuildString(elements)
public string BuildString( StyleElementFlags elements )
public: String^ BuildString( StyleElementFlags elements )
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.
// build compact and a long style definition strings string s1 = _flex.Styles.Fixed.BuildString(); string s2 = _flex.Styles.Fixed.BuildString(StyleElementFlags.All); // show both style definitions Console.WriteLine("{0}: {1}", s1.Length, s1); Console.WriteLine("{0}: {1}", s2.Length, s2);
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2