本文整理汇总了C#中iTextSharp.text.Rectangle.GetBottom方法的典型用法代码示例。如果您正苦于以下问题:C# Rectangle.GetBottom方法的具体用法?C# Rectangle.GetBottom怎么用?C# Rectangle.GetBottom使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类iTextSharp.text.Rectangle
的用法示例。
在下文中一共展示了Rectangle.GetBottom方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CellLayout
// ---------------------------------------------------------------------------
/**
* @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(
* com.lowagie.text.pdf.PdfPCell,
* com.lowagie.text.Rectangle,
* com.lowagie.text.pdf.PdfContentByte[]
* )
*/
public void CellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] cb)
{
parent.AddKid(kid);
kid.SetWidget(
new Rectangle(rect.GetLeft(padding), rect.GetBottom(padding),
rect.GetRight(padding), rect.GetTop(padding)),
PdfAnnotation.HIGHLIGHT_INVERT
);
}
示例2: CellLayout
/**
* @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
*/
virtual public void CellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] canvases) {
if (cellField == null || (fieldWriter == null && parent == null)) throw new ArgumentException(MessageLocalization.GetComposedMessage("you.have.used.the.wrong.constructor.for.this.fieldpositioningevents.class"));
cellField.Put(PdfName.RECT, new PdfRectangle(rect.GetLeft(padding), rect.GetBottom(padding), rect.GetRight(padding), rect.GetTop(padding)));
if (parent == null)
fieldWriter.AddAnnotation(cellField);
else
parent.AddKid(cellField);
}
示例3: OnGenericTag
/**
* @see com.lowagie.text.pdf.PdfPageEvent#onGenericTag(com.lowagie.text.pdf.PdfWriter, com.lowagie.text.Document, com.lowagie.text.Rectangle, java.lang.String)
*/
public override void OnGenericTag(PdfWriter writer, Document document,
Rectangle rect, String text) {
rect.Bottom = rect.Bottom - 3;
PdfFormField field;
genericChunkFields.TryGetValue(text, out field);
if (field == null) {
TextField tf = new TextField(writer, new Rectangle(rect.GetLeft(padding), rect.GetBottom(padding), rect.GetRight(padding), rect.GetTop(padding)), text);
tf.FontSize = 14;
field = tf.GetTextField();
}
else {
field.Put(PdfName.RECT, new PdfRectangle(rect.GetLeft(padding), rect.GetBottom(padding), rect.GetRight(padding), rect.GetTop(padding)));
}
if (parent == null)
writer.AddAnnotation(field);
else
parent.AddKid(field);
}
示例4: CellLayout
/**
* @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
*/
public void CellLayout(PdfPCell cell, Rectangle position, PdfContentByte[] canvases) {
float sp_left = spacing_left;
if (float.IsNaN(sp_left)) sp_left = 0f;
float sp_right = spacing_right;
if (float.IsNaN(sp_right)) sp_right = 0f;
float sp_top = spacing_top;
if (float.IsNaN(sp_top)) sp_top = 0f;
float sp_bottom = spacing_bottom;
if (float.IsNaN(sp_bottom)) sp_bottom = 0f;
Rectangle rect = new Rectangle(position.GetLeft(sp_left), position.GetBottom(sp_bottom), position.GetRight(sp_right), position.GetTop(sp_top));
rect.CloneNonPositionParameters(this);
canvases[PdfPTable.BACKGROUNDCANVAS].Rectangle(rect);
rect.BackgroundColor = null;
canvases[PdfPTable.LINECANVAS].Rectangle(rect);
}
示例5: addPrintDate
// Private Methods (4)
private void addPrintDate(Rectangle pageSize, string printTime)
{
ColumnText.ShowTextAligned(
canvas: _pdfContentByte,
alignment: Element.ALIGN_RIGHT,
phrase: _pdfRptFont.FontSelector.Process(printTime),
x: pageSize.GetRight(40),
y: pageSize.GetBottom(30),
rotation: 0,
runDirection: (int)_direction,
arabicOptions: 0);
}
示例6: CellLayout
/**
* @see com.lowagie.text.pdf.PdfPCellEvent#cellLayout(com.lowagie.text.pdf.PdfPCell, com.lowagie.text.Rectangle, com.lowagie.text.pdf.PdfContentByte[])
*/
public void CellLayout(PdfPCell cell, Rectangle rect, PdfContentByte[] canvases)
{
if (cellField == null || (fieldWriter == null && parent == null)) throw new ArgumentException("You have used the wrong constructor for this FieldPositioningEvents class.");
cellField.Put(PdfName.RECT, new PdfRectangle(rect.GetLeft(padding), rect.GetBottom(padding), rect.GetRight(padding), rect.GetTop(padding)));
if (parent == null)
fieldWriter.AddAnnotation(cellField);
else
parent.AddKid(cellField);
}