.


:




:

































 

 

 

 





Paragraphs Document, . Add :

App.ActiveDocument.Paragraphs.Add;

, , Paragraph, Range, ( ). . , ( ):

var Rng: Variant;... Rng:= App.ActiveDocument.Range(2,4);// 2- 4-

(, ):

Rng:= App.ActiveDocument.Paragraphs.Item(1).Range;

, :

Rng:= App.ActiveDocument.Range _ (App.ActiveDocument.Paragraphs.Item(3).Range.Start,_ App.ActiveDocument.Paragraphs.Item(5).Range.End)

Range InsertBefore ( ) InsertAfter ( ), :

Rng.InsertAfter(' ');

Range Selection, Word.Application ( , , -). Selection , Select Range, :

var Sel: Variant;...App.ActiveDocument.Paragraphs.Item(3).Range.Select;

.

, , :

var Sel: Variant;... Sel:= App.Selection; Sel.TypeText(' , _ ');

, Options.ReplaceSelection Word.Application True, ( ); , , , False:

App.Options.ReplaceSelection:= False;

Selection :

Sel.TypeParagraph;

Selection, Range, InsertBefore InsertAfter. , , .

Selection, Font Font, Bold, Italic, Size,:, . , , :

Sel.Font.Bold:= True;Sel.TypeText(' , _ .');Sel.Font.Bold:= False;Sel.TypeParagraph;

Style , :

Sel.Style:= 'Heading 1';Sel.TypeText(' , _ ');Sel.TypeParagraph;

Word . - Paste Range:

Var Rng: Variant;... Rng:= App.Selection.Range; Rng.Collapse(wdCollapseEnd); Rng.Paste;

, .

Word, Copy Range:

Var Rng: Variant;... Rng:= App.Selection.Range; Rng.Copy;

 

 





:


: 2017-02-11; !; : 320 |


:

:

.
==> ...

1386 - | 1363 -


© 2015-2024 lektsii.org - -

: 0.01 .