SaveToBuffer

视图类页面类图形单元类的函数成员

对于视图类,把视图保存到字符串。

对于页面类,把页面保存到字符串。

对于图形单元类,把图形单元保存到字符串。

语法

string=SaveToBuffer()

例如

一个空的视图文件保存成的字符串可能是这样:

<?xml version="1.0" encoding="unicode"?>
<vg version="1100" range="0,0,1024,768" backcolor="$FFFFFF">
<sheet name="sheet1"/>
</vg>

一个空的页面保存成的字符串可能是这样:

<sheet name="sheet1"/>

一个矩形保存成的字符串可能是这样:

<rect name="Rect1" bounds="0,0,186,90" origin="93,45" pattern="1"/>

一个含两个圆形的元件保存成的字符串可能是这样:

<element name="element1" bounds="0,0,96,192" origin="48,96">
<circle name="circle1" bounds="0,0,96,96" origin="41,34.5" pattern="1"/>
<circle name="circle2" bounds="0,96,96,192" origin="41,130.5" pattern="1"/>
</element>

参见LoadFromBuffer