C# 클래스 TemplNET.TemplMatchPicture

Represents a picture, located by matching a placeholder string in the scope of this picture's Description field
상속: TemplMatchText
파일 보기 프로젝트 열기: CPonty/templ-dot-net 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Picture Novacode.Picture
Width int

공개 메소드들

메소드 설명
Find ( TemplRegex rxp, IEnumerable paragraphs ) : IEnumerable
Find ( TemplRegex rxp, Paragraph p ) : IEnumerable
RemovePlaceholder ( ) : void

Removes the matched Picture from the document.

SetDescription ( string text ) : TemplMatchPicture

Sets the string in the Picture's Description property.

ToText ( string text ) : TemplMatchPicture

Inserts text at the *beginning* of the Picture's Paragraph. Picture is removed.

비공개 메소드들

메소드 설명
Find ( TemplRegex rxp, Paragraph p, Picture pic ) : IEnumerable
InsertPicture ( TemplGraphic graphic, int width ) : void

Inserts a picture of a specific pixel width. Aspect ratio is maintained. Matched Picture is removed.

메소드 상세

Find() 공개 정적인 메소드

public static Find ( TemplRegex rxp, IEnumerable paragraphs ) : IEnumerable
rxp TemplRegex
paragraphs IEnumerable
리턴 IEnumerable

Find() 공개 정적인 메소드

public static Find ( TemplRegex rxp, Paragraph p ) : IEnumerable
rxp TemplRegex
p Novacode.Paragraph
리턴 IEnumerable

RemovePlaceholder() 공개 메소드

Removes the matched Picture from the document.
public RemovePlaceholder ( ) : void
리턴 void

SetDescription() 공개 메소드

Sets the string in the Picture's Description property.
public SetDescription ( string text ) : TemplMatchPicture
text string
리턴 TemplMatchPicture

ToText() 공개 메소드

Inserts text at the *beginning* of the Picture's Paragraph. Picture is removed.
public ToText ( string text ) : TemplMatchPicture
text string
리턴 TemplMatchPicture

프로퍼티 상세

Picture 공개적으로 프로퍼티

public Picture,Novacode Picture
리턴 Novacode.Picture

Width 공개적으로 프로퍼티

public int Width
리턴 int