Exemple #1
0
 public override void VisitSetMarginCommand(SetMarginCommand setMarginCommand)
 {
     if (setMarginCommand.LeftMargin.HasValue)
     {
         int left = setMarginCommand.LeftMargin.Value;
         _writer.Write($"[margin left=\"{left}\"]");
     }
     else if (setMarginCommand.TopMargin.HasValue)
     {
         int top = setMarginCommand.TopMargin.Value;
         _writer.Write($"[margin top=\"{top}\"]");
     }
 }
Exemple #2
0
 public override void VisitSetMarginCommand(SetMarginCommand setMarginCommand)
 {
     if (setMarginCommand.LeftMargin.HasValue)
     {
         Append(StringSegmentCodes.SetLeftMargin);
         Append(BitConverter.GetBytes(setMarginCommand.LeftMargin.Value));
     }
     else
     {
         Append(StringSegmentCodes.SetTopMargin);
         Append(BitConverter.GetBytes(setMarginCommand.TopMargin.Value));
     }
 }