C# Class TemplNET.TemplMatchPicture

Represents a picture, located by matching a placeholder string in the scope of this picture's Description field
Inheritance: TemplMatchText
Afficher le fichier Open project: CPonty/templ-dot-net Class Usage Examples

Méthodes publiques

Свойство Type Description
Picture Novacode.Picture
Width int

Méthodes publiques

Méthode Description
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.

Private Methods

Méthode Description
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.

Method Details

Find() public static méthode

public static Find ( TemplRegex rxp, IEnumerable paragraphs ) : IEnumerable
rxp TemplRegex
paragraphs IEnumerable
Résultat IEnumerable

Find() public static méthode

public static Find ( TemplRegex rxp, Paragraph p ) : IEnumerable
rxp TemplRegex
p Novacode.Paragraph
Résultat IEnumerable

RemovePlaceholder() public méthode

Removes the matched Picture from the document.
public RemovePlaceholder ( ) : void
Résultat void

SetDescription() public méthode

Sets the string in the Picture's Description property.
public SetDescription ( string text ) : TemplMatchPicture
text string
Résultat TemplMatchPicture

ToText() public méthode

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

Property Details

Picture public_oe property

public Picture,Novacode Picture
Résultat Novacode.Picture

Width public_oe property

public int Width
Résultat int