// For complete examples and data files, please go to https://github.com/atirtahirgroupdocs/GroupDocs.Signature-for-.NET
SignatureConfig config = Utilities.GetConfigurations();
// instantiating the signature handler
var handler = new SignatureHandler(config);
// setup text signature options
var signOptions = new CellsSignTextOptions("coca cola");
// text position
signOptions.RowNumber = 3;
signOptions.ColumnNumber = 6;
// text rectangle size
signOptions.Height = 100;
signOptions.Width = 100;
//this feature is supported in 16.12.0
signOptions.VerticalAlignment = Domain.VerticalAlignment.Top;
signOptions.HorizontalAlignment = Domain.HorizontalAlignment.Center;
signOptions.Margin = new Domain.Padding { Top = 2, Left = 25 };
//----------------------------
// if you need to sign all sheets set it to true
signOptions.SignAllPages = false;
signOptions.ForeColor = System.Drawing.Color.Red;
signOptions.BackgroundColor = System.Drawing.Color.Black;
signOptions.BorderColor = System.Drawing.Color.Green;
signOptions.Font = new Domain.SignatureFont { FontSize = size, FontFamily = "Comic Sans MS" };
// sign first sheet
signOptions.SheetNumber = 1;
string fileExtension = Path.GetExtension(fileName);
Utilities.SaveFile(fileExtension, fileName, handler, signOptions, null, null);