[]
Renders a block of text into the block flow of the current document.
public bool RenderBlockText(string text)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
The width of the rendered block is set to the width of the page (or column for multi-column layouts), which is equivalent to setting the Width of a RenderObject to "parent.width".
The height of the rendered block is set to auto, which is equivalent to setting the Height of a RenderObject to Auto or "auto".
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text into the block flow of the current document, using the specified Style.
public bool RenderBlockText(string text, Style style)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
Style | style | The style to use (can be null). |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text into the block flow of the current document, using the specified font, text color and horizontal alignment.
public bool RenderBlockText(string text, Font font, Color textColor, AlignHorzEnum horzAlign)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
Font | font | The Font to use (can be null). |
Color | textColor | The text color to use. |
AlignHorzEnum | horzAlign | The horizontal text alignment to use. |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text into the block flow of the current document, using the specified font.
public bool RenderBlockText(string text, Font font)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
Font | font | The Font to use (can be null). |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text into the block flow of the current document, using the specified font and text color.
public bool RenderBlockText(string text, Font font, Color textColor)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
Font | font | The Font to use (can be null). |
Color | textColor | The text color to use. |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text into the block flow of the current document, using the specified font and horizontal alignment.
public bool RenderBlockText(string text, Font font, AlignHorzEnum horzAlign)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
Font | font | The Font to use (can be null). |
AlignHorzEnum | horzAlign | The horizontal text alignment to use. |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text into the block flow of the current document, using the specified horizontal alignment.
public bool RenderBlockText(string text, AlignHorzEnum horzAlign)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
AlignHorzEnum | horzAlign | The horizontal text alignment to use. |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text into the block flow of the current document, using the specified text color.
public bool RenderBlockText(string text, Color textColor)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
Color | textColor | The text color to use. |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).
Renders a block of text with the specifed width and height into the block flow of the current document, using the specified Style.
public bool RenderBlockText(string text, object width, object height, Style style)
Type | Name | Description |
---|---|---|
string | text | The text to render. |
object | width | The width of the block to render (if null, parent width is used). |
object | height | The height of the block to render (if null, auto height is used). |
Style | style | The style to use (can be null). |
Type | Description |
---|---|
bool | true if no warnings were generated by this call, false otherwise. |
See RenderBlockText(string) for details on how the width and height of the text block are set.
This method can only be used between calls to StartDoc() and EndDoc() methods on the current document. For details, see RenderBlock(RenderObject).