Ends rendering of the current inline paragraph.
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
public void RenderInlineEnd() |
Visual Basic |
---|
Public Sub RenderInlineEnd |
Remarks
This method ends the current internally maintained RenderParagraph object
used to serve any of RenderInline... calls.
It is not necessary to call this method in order to end the current paragraph, it is also automatically ended by a call to RenderInlineBegin(Style, Object, Object) or any of the RenderBlock... or RenderDirect... methods.
This method can only be used between calls to StartDoc()()()() and EndDoc()()()() methods on the current document. For details, see RenderBlock(RenderObject).
Examples
The following example uses the RenderInlineEnd()()()() method to finish the inline rendering:
Copy CodeVisual Basic
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Me.C1PrintDocument1.StartDoc() Me.C1PrintDocument1.RenderInlineText("With C1PrintDocument you can print ") Me.C1PrintDocument1.RenderInlineText("Line by Line", New Font("Times New Roman", 30, FontStyle.Bold), Color.FromArgb(0, 0, 125)) Me.C1PrintDocument1.RenderInlineText(" and modify text attributes as you go.") Me.C1PrintDocument1.RenderInlineEnd() Me.C1PrintDocument1.RenderInlineText(" The text wraps automatically, so your life becomes easier.", Color.Green) Me.C1PrintDocument1.EndDoc() End Sub |
Copy CodeC#
private void Form1_Load(object sender, EventArgs e) { this.c1PrintDocument1.StartDoc(); this.c1PrintDocument1.RenderInlineText("With C1PrintDocument you can print "); this.c1PrintDocument1.RenderInlineText("Line by Line", new Font("Times New Roman", 30, FontStyle.Bold), Color.FromArgb(0, 0, 125)); this.c1PrintDocument1.RenderInlineText(" and modify text attributes as you go."); this.c1PrintDocument1.RenderInlineEnd(); this.c1PrintDocument1.RenderInlineText(" The text wraps automatically, so your life becomes easier.", Color.Green); this.c1PrintDocument1.EndDoc(); } |