企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
<p><span style="font-weight:700;"><span style="font-size:16px;">Font 属性</span></span></p> <p><span style="line-height:1.78571;">这个属性返回一个字体对象</span></p> <p class="label" style="font-size:12px;">语法</p> <p><span class="emp"><i>object</i></span>.<b>Font</b>[ =&nbsp;<span class="emp"><i>Font</i></span>]</p> <p><span style="font-weight:700;"><span style="font-weight:700;"><span style="font-weight:700;">Font</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"><p class="MsoNormal"><span class="emp"><i><span style="font-size:9pt;">Font</span></i></span><span style="font-size:9pt;font-family:宋体;"></span></p> </td> <td width="71%" valign="top"><p class="MsoNormal">一个对象表达式,指定对象的字体属性</p> </td> </tr> </tbody> </table> <p><br /> </p> <p class="label" style="font-size:12px;">说明</p> <p>使用对象的Font属性来标识要使用其属性的特定Font对象。</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 CmbNodeFont_AfterUpdate() &nbsp; &nbsp; Dim oNode As Node &nbsp; &nbsp; Dim oFont As New StdFont &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; Set oNode = TreeView0.SelectedItem &nbsp; &nbsp; If oNode Is Nothing = False Then &nbsp; &nbsp; &nbsp; &nbsp; With oFont &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Name = Nz(Me.CmbNodeFont.Value, "Arial") &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Bold = Me.ChkNodeBold &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; .Size = 11 &nbsp; &nbsp; &nbsp; &nbsp; End With &nbsp; &nbsp; &nbsp; &nbsp; Set oNode.Font = oFont &nbsp; &nbsp; &nbsp; &nbsp; Set oNode = Nothing &nbsp; &nbsp; &nbsp; &nbsp; Set oFont = Nothing &nbsp; &nbsp; End If &nbsp; &nbsp;&nbsp; End Sub<div></div> </pre> <div><br /> </div>