|
@@ -30,33 +30,35 @@ namespace ComPDFKit.Tool
|
|
|
public bool IsItalic { get; set; }
|
|
|
public C_BORDER_STYLE BorderStyle { get; set; }
|
|
|
public CPDFMeasureInfo measureInfo { get; set; }
|
|
|
-
|
|
|
+ public double LeadLength { get; set; }
|
|
|
+ public double LeadExtension { get; set; }
|
|
|
+ public double LeadOffset { get; set; }
|
|
|
public override bool CopyTo(AnnotParam transfer)
|
|
|
{
|
|
|
- LineMeasureParam polygonTransfer = transfer as LineMeasureParam;
|
|
|
- if (polygonTransfer == null)
|
|
|
+ LineMeasureParam lineTransfer = transfer as LineMeasureParam;
|
|
|
+ if (lineTransfer == null)
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- if (!base.CopyTo(polygonTransfer))
|
|
|
+ if (!base.CopyTo(lineTransfer))
|
|
|
{
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (LineColor != null)
|
|
|
{
|
|
|
- polygonTransfer.LineColor = (byte[])LineColor.Clone();
|
|
|
+ lineTransfer.LineColor = (byte[])LineColor.Clone();
|
|
|
}
|
|
|
|
|
|
if (LineDash != null)
|
|
|
{
|
|
|
- polygonTransfer.LineDash = (float[])LineDash.Clone();
|
|
|
+ lineTransfer.LineDash = (float[])LineDash.Clone();
|
|
|
}
|
|
|
|
|
|
if (FontColor != null)
|
|
|
{
|
|
|
- polygonTransfer.FontColor = (byte[])FontColor.Clone();
|
|
|
+ lineTransfer.FontColor = (byte[])FontColor.Clone();
|
|
|
}
|
|
|
|
|
|
if (measureInfo != null)
|
|
@@ -78,19 +80,22 @@ namespace ComPDFKit.Tool
|
|
|
RulerTranslate= measureInfo.RulerTranslate,
|
|
|
CaptionType = measureInfo.CaptionType,
|
|
|
};
|
|
|
- polygonTransfer.measureInfo = cPDFMeasureInfo;
|
|
|
+ lineTransfer.measureInfo = cPDFMeasureInfo;
|
|
|
}
|
|
|
|
|
|
- polygonTransfer.LineWidth = LineWidth;
|
|
|
- polygonTransfer.HeadLineType = HeadLineType;
|
|
|
- polygonTransfer.TailLineType = TailLineType;
|
|
|
- polygonTransfer.FontName = FontName;
|
|
|
- polygonTransfer.FontSize = FontSize;
|
|
|
- polygonTransfer.IsBold = IsBold;
|
|
|
- polygonTransfer.IsItalic = IsItalic;
|
|
|
- polygonTransfer.HeadPoint = HeadPoint;
|
|
|
- polygonTransfer.TailPoint = TailPoint;
|
|
|
- polygonTransfer.BorderStyle = BorderStyle;
|
|
|
+ lineTransfer.LineWidth = LineWidth;
|
|
|
+ lineTransfer.HeadLineType = HeadLineType;
|
|
|
+ lineTransfer.TailLineType = TailLineType;
|
|
|
+ lineTransfer.FontName = FontName;
|
|
|
+ lineTransfer.FontSize = FontSize;
|
|
|
+ lineTransfer.IsBold = IsBold;
|
|
|
+ lineTransfer.IsItalic = IsItalic;
|
|
|
+ lineTransfer.HeadPoint = HeadPoint;
|
|
|
+ lineTransfer.TailPoint = TailPoint;
|
|
|
+ lineTransfer.BorderStyle = BorderStyle;
|
|
|
+ lineTransfer.LeadExtension=LeadExtension;
|
|
|
+ lineTransfer.LeadLength = LeadLength;
|
|
|
+ lineTransfer.LeadOffset = LeadOffset;
|
|
|
|
|
|
return true;
|
|
|
}
|