TemplNET.TemplGraphic.Picture C# (CSharp) Method

Picture() public method

Generate a Picture instance, which can be inserted into a Document
public Picture ( ) : Picture
return Picture
        public Picture Picture()
        {
            return Picture(Scalar);
        }

Same methods

TemplGraphic::Picture ( double scalar ) : Picture
TemplGraphic::Picture ( uint width ) : Picture

Usage Example

コード例 #1
0
ファイル: Match.cs プロジェクト: luozhiping1987/templ-dot-net
 /// <summary>
 /// Insert a picture at the beginning of the paragraph. The graphic must already be loaded into the same document.
 /// </summary>
 private void InsertPicture(TemplGraphic graphic, int width)
 {
     // Simple. Picture at index(es). Ensure you load picture first.
     Paragraph.FindAll(Placeholder).ForEach(idx =>
     {
         if (width > 0)
         {
             Paragraph.InsertPicture(graphic.Picture((uint)width), idx + Placeholder.Length);
         }
         else
         {
             Paragraph.InsertPicture(graphic.Picture(), idx + Placeholder.Length);
         }
         Paragraph.Alignment = (graphic.Alignment ?? Paragraph.Alignment);
     });
 }
All Usage Examples Of TemplNET.TemplGraphic::Picture