Property Pages
Pages
Represents an object that implements IEditPage
interface containing properties and methods representing collection of particular pages.
[TypeConverter(typeof(ExpandableObjectConverter))]
public virtual IEditPages Pages { get; set; }
Property Value
Examples
Here is how to set a Pages different TextSource from the C# code:
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
syntaxEdit1.Pages.PageType = Alternet.Editor.PageType.PageLayout;
syntaxEdit1.Pages.RulerOptions = Alternet.Editor.RulerOptions.AllowDrag | Alternet.Editor.RulerOptions.DisplayDragLine;
syntaxEdit1.Pages.PageKind = System.Drawing.Printing.PaperKind.A5;
}
}
Here is how to set a Pages different TextSource from the Visual Basic code:
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim syntaxEdit1 = New Alternet.Editor.SyntaxEdit(Me.components)
syntaxEdit1.Pages.PageType = Alternet.Editor.PageType.PageLayout
syntaxEdit1.Pages.RulerOptions = Alternet.Editor.RulerOptions.AllowDrag Or Alternet.Editor.RulerOptions.DisplayDragLine
syntaxEdit1.Pages.PageKind = System.Drawing.Printing.PaperKind.A5
End Sub
End Class
Remarks
Set PageType to PageLayout to display SyntaxEdit content as a collection of pages, like they will appear on the printed page.