I am placing a image in a table cell and below the image I will be adding 1 to 3 lines of text. I have it all working, but have 2 questions.
1. I would like to center the image vertically in the table cell.
2. I want to single space the inserted text (paragraph)
Below is my code:
using (Stream firstImage = File.OpenRead(outputFileName))
{
var inImage = table1.Rows[x].Cells[y].Blocks.AddParagraph().Inlines.AddImageInline();
inImage.Image.Size = new System.Windows.Size(colWidth, colWidth);
inImage.Image.LockAspectRatio = true;
inImage.Image.ImageSource = new Telerik.Windows.Documents.Media.ImageSource(firstImage, "jpg");
}
table1.Rows[x].Cells[y].Blocks.AddParagraph().Inlines.AddRun(Path.GetFileNameWithoutExtension(h.fileName)); // filename