最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

vba - Libreoffice Writer Paragraph border color using macros - Stack Overflow

programmeradmin0浏览0评论

in a writer document i try to set a color for a paragraph-style border using a macro... somehow i do not get this to work (though the characterheight is correctly working)

sub testBorderColor

    dim oFamilies
    dim oStyle
    dim oStyles

    oFamilies = ThisComponent.StyleFamilies
    oStyles = oFamilies.getByName("ParagraphStyles")
    oStyle = oStyles.getByName("gk-horlijn2")

    oStyle.CharHeight = cLng(9)
    oStyle.TopBorder.Color = rgb(250,0,0)

end sub
发布评论

评论列表(0)

  1. 暂无评论