<?xml version="1.0" encoding="utf-8"?>
<vg version="723" range="0,0,1024,768" scrollbars="0" papervisible="false">
<sheet name="sheet1" visible="false">
<text name="text1" origin="146,74" bounds="8,32,576,196" autosize="true" border="0" fontname="宋体" fontsize="12" textalign="1" lineinterval="4" text="设置一组表格（或一个文字单元）的边框类型。

COM接口：
vgctrl1.vg.SetBorder( 左边线类型, 上边线类型, 右边线类型, 下边线类型, 内部横线类型, 内部纵线类型)

六个参数为0、1或-1。0代表无边线，1代表实线，-1表示该位置线型不变。

下面图示对选中的一组表格执行SetBorder后的效果：

一、SetBorder( 0, 0, 0, 0, 0, 0 )，边线空，内横线空，内纵线空:"/>
<text name="text2" origin="10,18" bounds="8,8,129,24" autosize="true" border="0" fontname="宋体" fontsize="12" fontstyle="1" textalign="1" text="表格或文字单元边框"/>
<text name="text4" origin="196,272" bounds="8,264,384,280" autosize="true" border="0" fontname="宋体" fontsize="12" textalign="1" text="二、SetBorder( 1, 1, 1, 1, 0, 0 )，有边线，内横线空，内纵线空:"/>
<text name="text3" origin="196,352" bounds="8,344,390,360" autosize="true" border="0" fontname="宋体" fontsize="12" textalign="1" text="三、SetBorder( 1, 1, 1, 1, 0, -1 )，有边线，内横线空，纵线不变:"/>
<element name="element1" origin="108,224" bounds="16,200,200,248">
<element name="element1" origin="160,224" bounds="120,200,200,248">
<text name="text16" origin="142,212" bounds="120,200,160,248" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="0" fontname="宋体" fontsize="12" text="Text1"/>
<text name="text17" origin="186,212" bounds="160,200,200,224" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="0" fontname="宋体" fontsize="12" text="Text2"/>
<text name="text18" origin="186,236" bounds="160,224,200,248" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="0" fontname="宋体" fontsize="12" text="Text3"/>
</element>
<line name="line3" origin="111.5,224" shadowvisible="true" shadowoffsetx="4" shadowoffsety="4" shadowalpha="50" shadowcolor="$C0C0C0" linewidth="2" linecolor="$FF" endarrow="3" points="96,224,6 120,224,2"/>
<element name="element4" origin="56,224" bounds="16,200,96,248">
<text name="text4" origin="38,212" bounds="16,200,56,248" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text1"/>
<text name="text6" origin="82,212" bounds="56,200,96,224" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text2"/>
<text name="text14" origin="82,236" bounds="56,224,96,248" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text3"/>
</element>
</element>
<element name="element2" origin="108,392" bounds="16,368,200,416">
<element name="element2" origin="56,392" bounds="16,368,96,416">
<text name="text4" origin="38,380" bounds="16,368,56,416" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text1"/>
<text name="text6" origin="82,380" bounds="56,368,96,392" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text2"/>
<text name="text14" origin="82,404" bounds="56,392,96,416" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text3"/>
</element>
<line name="line2" origin="111.5,392" shadowvisible="true" shadowoffsetx="4" shadowoffsety="4" shadowalpha="50" shadowcolor="$C0C0C0" linewidth="2" linecolor="$FF" endarrow="3" points="96,392,6 120,392,2"/>
<element name="element4" origin="160,392" bounds="120,368,200,416">
<text name="text22" origin="142,380" bounds="120,368,160,416" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text1"/>
<text name="text23" origin="186,380" bounds="160,368,200,392" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="7" fontname="宋体" fontsize="12" text="Text2"/>
<text name="text24" origin="186,404" bounds="160,392,200,416" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="13" fontname="宋体" fontsize="12" text="Text3"/>
</element>
</element>
<element name="element3" origin="108,312" bounds="16,288,200,336">
<element name="element5" origin="56,312" bounds="16,288,96,336">
<text name="text4" origin="38,300" bounds="16,288,56,336" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text1"/>
<text name="text6" origin="82,300" bounds="56,288,96,312" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text2"/>
<text name="text14" origin="82,324" bounds="56,312,96,336" selectmode="1" backcolor="$FFFF" pattern="1" border="15" fontname="宋体" fontsize="12" text="Text3"/>
</element>
<line name="line1" origin="111.5,312" shadowvisible="true" shadowoffsetx="4" shadowoffsety="4" shadowalpha="50" shadowcolor="$C0C0C0" linewidth="2" linecolor="$FF" endarrow="3" points="96,312,6 120,312,2"/>
<element name="element3" origin="160,312" bounds="120,288,200,336">
<text name="text19" origin="142,300" bounds="120,288,160,336" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="11" fontname="宋体" fontsize="12" text="Text1"/>
<text name="text20" origin="186,300" bounds="160,288,200,312" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="6" fontname="宋体" fontsize="12" text="Text2"/>
<text name="text21" origin="186,324" bounds="160,312,200,336" selectmode="1" linecolor="$FF" backcolor="$FFFF" pattern="1" border="12" fontname="宋体" fontsize="12" text="Text3"/>
</element>
</element>
<programe>
<!--
private function OnMouseWheel(Sender,Forward)
if Forward then
  ScrollBy( 0, -20 )
else
  ScrollBy( 0, 20 )
end if
end function
-->
</programe>
</sheet>
</vg>
