Skip to content

Commit ba2b8cb

Browse files
Update fixedcontenteditor.md
1 parent 4db53f4 commit ba2b8cb

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

libraries/radpdfprocessing/editing/fixedcontenteditor.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,25 @@ __FixedContentEditor__ is always associated with a single [RadFixedPage]({%slug
4444

4545
#### __[C#] Example 1: Create FixedContentEditor__
4646

47-
{{region cs-radpdfprocessing-editing-fixedcontenteditor_0}}
47+
{{source=..\SamplesCS\RadPdfProcessing\Editing.cs region=cs-radpdfprocessing-editing-fixedcontenteditor_0}}
48+
49+
````C#
4850
RadFixedDocument document = new RadFixedDocument();
4951
var firstPage = document.Pages.AddPage();
5052

5153
FixedContentEditor fixedContentEditor = new FixedContentEditor(firstPage);
52-
{{endregion}}
54+
````
55+
{{endregion}}
5356

5457
The editor maintains an internal [Position]({%slug radpdfprocessing-concepts-position%}) inside the content root element. When a new element is created, its position is being set to the current position of the editor. The initial position of the editor can be specified when it is created.
5558

5659
__Example 2__ demonstrates how you can create a FixedContentEditor with a specific initial [Position]({%slug radpdfprocessing-concepts-position%}).
5760

5861
#### __[C#] Example 2: Create FixedContentEditor with a specific position__
5962

60-
{{region cs-radpdfprocessing-editing-fixedcontenteditor_1}}
63+
{{source=..\SamplesCS\RadPdfProcessing\Editing.cs region=cs-radpdfprocessing-editing-fixedcontenteditor_1}}
64+
65+
````C#
6166
MatrixPosition matrixPosition = new MatrixPosition();
6267
matrixPosition.Translate(20, 20); // Translates the position by (20, 20)
6368
matrixPosition.Translate(30, 30); // Translates the position by (30, 30).
@@ -68,7 +73,9 @@ __Example 2__ demonstrates how you can create a FixedContentEditor with a specif
6873
6974
FixedContentEditor simplePositionfixedContentEditor = new FixedContentEditor(firstPage,matrixPosition);
7075
FixedContentEditor matrixPositionfixedContentEditor = new FixedContentEditor(firstPage,matrixPosition);
71-
{{endregion}}
76+
77+
````
78+
{{endregion}}
7279

7380
## Inserting Elements
7481

0 commit comments

Comments
 (0)