Html_Element_Text_Create()

Abstract

Creates an element to represent a block of text.

Syntax

Html_Element_Text_Create (text, font, options)
Argument Type Description
text const char * the text that will appear on the page
font HtmlT_Font the font to be used
options int options combined as a bitwise OR (see Details)

Return Type

void

No return value.

html.h

Details

This is a more general text element than what is created by Html_Element_Text_Line_Create(). Html_Element_Text_Create() lets the user specify an HTML font in addition to other options. The options for Html_Element_Text_Create() are

  • HTMLC_TEXT_LINE_OPT_HEADER — makes the text line a header line (uses <H1> tag)
  • HTMLC_TEXT_LINE_OPT_HEADER2 — uses <H2> tag for the text line
  • HTMLC_TEXT_LINE_OPT_HEADER3 — uses <H3> tag for the text line
  • HTMLC_TEXT_LINE_OPT_HEADER4 — uses <H4> tag for the text line
  • HTMLC_TEXT_LINE_OPT_HEADER5 — uses <H5> tag for the text line
  • HTMLC_TEXT_LINE_OPT_HEADER6 — uses <H6> tag for the text line
  • HTMLC_TEXT_LINE_OPT_LINEBREAK — causes a line break to appear after the text line
  • HTMLC_TEXT_LINE_OPT_MONOSPACE — causes a line to be displayed in a monospaced font. An explicit font specification takes precedence.
  • HTMLC_TEXT_LINE_OPT_LALIGN — left align the text line element content
  • HTMLC_TEXT_LINE_OPT_RALIGN — right align the text line element content
  • HTMLC_TEXT_LINE_OPT_CENTER — center align the text line element content

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com