💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
<p><span style="font-weight:700;"><span style="font-size:16px;">BorderStyle 属性</span></span></p> <p>返回或设置对象的边框样式。</p> <p class="label" style="font-size:12px;">语法</p> <p><span class="emp"><i>object</i></span>.<b>BorderStyle</b>[ =&nbsp;<span class="emp"><i>value</i></span>]</p> <p><span style="font-weight:700;"><span style="font-weight:700;"><span style="font-weight:700;">BorderStyle</span></span></span>属性的语法包含下面部分:</p> <table class="MsoNormalTable" border="1" cellpadding="0" style="width:650px;"><tbody><tr><td width="29%" valign="top"><p class="MsoNormal"><span style="font-weight:700;"><span style="font-size:9pt;font-family:宋体;">部分</span></span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> <td width="71%" valign="top"><p class="MsoNormal"><span style="font-weight:700;"><span style="font-size:9pt;font-family:宋体;">描述</span></span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> </tr> <tr><td width="29%" valign="top"><p class="MsoNormal"><span class="emp"><i><span style="font-size:9pt;">object</span></i></span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> <td width="71%" valign="top"><p class="MsoNormal">对象表达式,其值是“应用于”列表中的一个对象。</p> </td> </tr> <tr><td width="29%" valign="top"><span style="font-size:12px;line-height:18.4615px;"><i>value</i></span></td> <td width="71%" valign="top"><p class="MsoNormal">确定边框样式的值或常数</p> </td> </tr> </tbody> </table> <p class="MsoNormal">&nbsp;</p> <p class="label" style="font-size:12px;">设置值</p> <p><span class="emp"><i>boolean</i></span>的设置值是:</p> <table class="MsoNormalTable" border="1" cellpadding="0" width="100%" style="width:650px;"><tbody><tr><td width="29%" valign="top"><p class="MsoNormal"><span style="font-weight:700;"><span style="font-size:9pt;font-family:宋体;">常数</span></span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> <td width="8%" valign="top"><p class="MsoNormal"><span style="font-weight:700;"><span style="font-size:9pt;font-family:宋体;">值</span></span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> <td width="61%" valign="top"><p class="MsoNormal"><span style="font-weight:700;"><span style="font-size:9pt;font-family:宋体;">描述</span></span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> </tr> <tr><td width="29%" valign="top"><span><span style="font-size:12px;line-height:18.4615px;">ccNone</span></span></td> <td width="8%" valign="top"><p class="MsoNormal"><span style="font-size:9pt;font-family:宋体;">0</span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> <td width="61%" valign="top"><p class="MsoNormal">无(无边框或边框相关元素)</p> </td> </tr> <tr><td width="29%" valign="top"><span><span style="font-size:12px;line-height:18.4615px;">ccFixedSingle</span></span></td> <td width="8%" valign="top"><p class="MsoNormal">1</p> </td> <td width="61%" valign="top">固定单线条</td> </tr> </tbody> </table> <p class="MsoNormal">&nbsp;</p> <p class="label" style="font-size:12px;">说明</p> <p><span>ActiveX控件的常量以特定控件的三个字母开头。例如,本编辑控件使用<strong>cc</strong></span><strong>None</strong><span>。但是,除非另有说明,否则说明书保持不变。</span></p> <p><span style="font-weight:700;"></span><span style="font-weight:700;"></span><span style="font-weight:700;"></span><span style="font-weight:700;"></span><span style="font-weight:700;"></span></p> <pre class="prettyprint lang-vb">Private Sub CmbBorderStyle_AfterUpdate() &nbsp; &nbsp; TreeView0.BorderStyle = Nz(Me.CmbBorderStyle.Value, 0) End Sub </pre> <div><br /> </div>