.net利用IOleCommandTarget接口实现Html编辑器表格边框的显示和隐藏(原创)
Posted on 2005-07-08 15:10 Alice 阅读(885) 评论(2) 编辑 收藏 举报Public Sub ShowTableZeroBorders(ByVal b As Boolean)
If isDesignMode Then
'showGlyph ,start add by alice ,2005-5-18
isShowTableZeroBorders = b
Dim ct As htmlinterface.IOleCommandTarget = m_doc
Dim pguidCmdGroup As Guid = New Guid("DE4BA900-59CA-11CF-9592-444553540000")
ct.Exec(pguidCmdGroup, Convert.ToUInt32(2328), Convert.ToUInt32(0), b, Nothing)
End If
End Sub
If isDesignMode Then
'showGlyph ,start add by alice ,2005-5-18
isShowTableZeroBorders = b
Dim ct As htmlinterface.IOleCommandTarget = m_doc
Dim pguidCmdGroup As Guid = New Guid("DE4BA900-59CA-11CF-9592-444553540000")
ct.Exec(pguidCmdGroup, Convert.ToUInt32(2328), Convert.ToUInt32(0), b, Nothing)
End If
End Sub