PHP 클래스 PhpOffice\PhpPresentation\Shape\RichText\Paragraph

상속: implements PhpOffice\PhpPresentation\ComparableInterface
파일 보기 프로젝트 열기: phpoffice/phppowerpoint 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( ) Create a new \PhpOffice\PhpPresentation\Shape\RichText\Paragraph instance
__toString ( ) : string Convert to string
addText ( PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface $pText = null ) : Paragraph Add text
createBreak ( ) : BreakElement Create break
createText ( string $pText = '' ) : TextElement Create text (can not be formatted !)
createTextRun ( string $pText = '' ) : PhpOffice\PhpPresentation\Shape\RichText\Run Create text run (can be formatted)
getAlignment ( ) : Alignment Get alignment
getBulletStyle ( ) : Bullet Get bullet style
getFont ( ) : Font Get font
getHashCode ( ) : string Get hash code
getHashIndex ( ) : string Get hash index
getLineSpacing ( ) : integer
getPlainText ( ) : string Get plain text
getRichTextElements ( ) : PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface[] Get Rich Text elements
setAlignment ( Alignment $alignment ) : Paragraph Set alignment
setBulletStyle ( Bullet $style = null ) : Paragraph Set bullet style
setFont ( Font $pFont = null ) : Paragraph Set font
setHashIndex ( string $value ) Set hash index
setLineSpacing ( integer $lineSpacing ) : Paragraph
setRichTextElements ( PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface[] $pElements = null ) : Paragraph Set Rich Text elements

메소드 상세

__construct() 공개 메소드

Create a new \PhpOffice\PhpPresentation\Shape\RichText\Paragraph instance
public __construct ( )

__toString() 공개 메소드

Convert to string
public __toString ( ) : string
리턴 string

addText() 공개 메소드

Add text
public addText ( PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface $pText = null ) : Paragraph
$pText PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface Rich text element
리턴 Paragraph

createBreak() 공개 메소드

Create break
public createBreak ( ) : BreakElement
리턴 BreakElement

createText() 공개 메소드

Create text (can not be formatted !)
public createText ( string $pText = '' ) : TextElement
$pText string Text
리턴 TextElement

createTextRun() 공개 메소드

Create text run (can be formatted)
public createTextRun ( string $pText = '' ) : PhpOffice\PhpPresentation\Shape\RichText\Run
$pText string Text
리턴 PhpOffice\PhpPresentation\Shape\RichText\Run

getAlignment() 공개 메소드

Get alignment
public getAlignment ( ) : Alignment
리턴 PhpOffice\PhpPresentation\Style\Alignment

getBulletStyle() 공개 메소드

Get bullet style
public getBulletStyle ( ) : Bullet
리턴 PhpOffice\PhpPresentation\Style\Bullet

getFont() 공개 메소드

Get font
public getFont ( ) : Font
리턴 PhpOffice\PhpPresentation\Style\Font

getHashCode() 공개 메소드

Get hash code
public getHashCode ( ) : string
리턴 string Hash code

getHashIndex() 공개 메소드

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public getHashIndex ( ) : string
리턴 string Hash index

getLineSpacing() 공개 메소드

public getLineSpacing ( ) : integer
리턴 integer

getPlainText() 공개 메소드

Get plain text
public getPlainText ( ) : string
리턴 string

getRichTextElements() 공개 메소드

Get Rich Text elements
public getRichTextElements ( ) : PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface[]
리턴 PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface[]

setAlignment() 공개 메소드

Set alignment
public setAlignment ( Alignment $alignment ) : Paragraph
$alignment PhpOffice\PhpPresentation\Style\Alignment
리턴 Paragraph

setBulletStyle() 공개 메소드

Set bullet style
public setBulletStyle ( Bullet $style = null ) : Paragraph
$style PhpOffice\PhpPresentation\Style\Bullet
리턴 Paragraph

setFont() 공개 메소드

Set font
public setFont ( Font $pFont = null ) : Paragraph
$pFont PhpOffice\PhpPresentation\Style\Font Font
리턴 Paragraph

setHashIndex() 공개 메소드

Note that this index may vary during script execution! Only reliable moment is while doing a write of a workbook and when changes are not allowed.
public setHashIndex ( string $value )
$value string Hash index

setLineSpacing() 공개 메소드

public setLineSpacing ( integer $lineSpacing ) : Paragraph
$lineSpacing integer
리턴 Paragraph

setRichTextElements() 공개 메소드

Set Rich Text elements
public setRichTextElements ( PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface[] $pElements = null ) : Paragraph
$pElements PhpOffice\PhpPresentation\Shape\RichText\TextElementInterface[] Array of elements
리턴 Paragraph