Html_Element_Text_Line_Create()

Abstract

Creates a line of text.

Syntax

Html_Element_Text_Line_Create (text_line, options)
Argument Type Description
text_line const char * the text to display on the page
options int desired options combined as a bitwise OR (see Details)

Return Type

HtmlT_Element *

the element that was created

html.h

Details

Creates an HtmlT_Element that represents a line of text. This uses the default HTML font. Multiple options are indicated by passing a bitwise OR of all the desired options. The options for this 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