cete.dynamicpdf.pageelements.forms.signaturepanel
SignaturePanel
- Namespace: ceTe.DynamicPDF.PageElements.Forms
- Assemblies: DynamicPDF.CoreSuite.dll
Represents a panel in the visible signature.
public class SignaturePanel
Public Class SignaturePanel
Inheritance: Object → SignaturePanel
Remarks
NOTE: This class required the .NET Framework 2.0 or greater. Visible signature area will be divides in to three panels. Left or Top panel, Right or Bottom Panel and Full panel.
Properties
CustomMessage
Gets or sets a string for the custom message.
public string CustomMessage { get; set; }
Public Property CustomMessage As String
Property Value
Remarks
Will be get append at the end of the message relevant to the panel.
FitImage
Gets or sets a value for resizing the given image to get fit with the panel area.
public bool FitImage { get; set; }
Public Property FitImage As Boolean
Property Value
Remarks
Default is true.
FontSize
Gets or sets a int indicating the font size.
public int FontSize { get; set; }
Public Property FontSize As Int32
Property Value
Remarks
By assigning a value more than zero, will override automatic font size adjustment to make the best fit of text in the panel.
ImageData
Gets or sets ImageData .
public ImageData ImageData { get; set; }
Public Property ImageData As ImageData
Property Value
KeepImageProportional
Gets or sets a value for maintaining image proportion when FitImage is set to true.
public bool KeepImageProportional { get; set; }
Public Property KeepImageProportional As Boolean
Property Value
Remarks
Default is true.
ShowDate
Gets or sets a value indicating if the full date of signing should be displayed.
public bool ShowDate { get; set; }
Public Property ShowDate As Boolean
Property Value
Remarks
Default - true[only for the right or bottom panel].
ShowDigitallySignedBy
Gets or sets a value indicating if 'Digitally Signed By {Subject name}' should be displayed.
public bool ShowDigitallySignedBy { get; set; }
Public Property ShowDigitallySignedBy As Boolean
Property Value
Remarks
Default - true[only for the right or bottom panel].
ShowDistinguishedName
Gets or sets a value indicating if the distinguished name (Certificate Subject) should be displayed.
public bool ShowDistinguishedName { get; set; }
Public Property ShowDistinguishedName As Boolean
Property Value
Remarks
Default - true[only for Right or Bottom]. Label for this information is DN.
ShowLabels
Gets or sets a value indicating if the signature information should include a label.
public bool ShowLabels { get; set; }
Public Property ShowLabels As Boolean
Property Value
Remarks
Default is true. Disabling this option will cause a new line for each information item.
ShowLocation
Gets or sets a value indicating display of location.
public bool ShowLocation { get; set; }
Public Property ShowLocation As Boolean
Property Value
Remarks
Default - true[only for the right or bottom panel]. It also requires Location should be set.
ShowReason
Gets or sets a value indicating if the reason.
public bool ShowReason { get; set; }
Public Property ShowReason As Boolean
Property Value
Remarks
Default - true[only for the right or bottom panel]. It also requires Reason should be set.
ShowSubjectName
Gets or sets a value indicating if the Subject Name from the certificate should be displayed.
public bool ShowSubjectName { get; set; }
Public Property ShowSubjectName As Boolean
Property Value
Remarks
Default - true[only for Left or Top]. There is no label for this.
TextAlign
Gets or sets the TextAlign enum that specifies the text align inside the panel.
public TextAlign TextAlign { get; set; }
Public Property TextAlign As TextAlign
Property Value
Remarks
Default will be left align.
TextColor
Gets or sets text color.
public Color TextColor { get; set; }
Public Property TextColor As Color
Property Value
TextRightToLeft
Gets or sets a value indicating if text should be displayed right to left.
public bool TextRightToLeft { get; set; }
Public Property TextRightToLeft As Boolean
Property Value
Remarks
Default is false.
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
HideAllText()
Hides all text visibility for the panel. HideAllText for hiding all the text in all the panels.
public void HideAllText()
Sub HideAllText()
Remarks
Custom message string will also set to null.
SetImage(Byte[])
Sets the image to the panel.
public void SetImage(Byte[] data)
Sub SetImage(data As Byte())
Parameters
- data: Byte[]
Byte array containing a valid image data.
SetImage(ImageData)
Sets the image to the panel.
public void SetImage(ImageData imageData)
Sub SetImage(imageData As ImageData)
Parameters
- imageData: ImageData
Instance of ImageData.
SetImage(Stream)
Sets the image to the panel.
public void SetImage(Stream stream)
Sub SetImage(stream As Stream)
Parameters
- stream: Stream
Stream containing the image data.
SetImage(String)
Sets the image to the panel.
public void SetImage(string filePath)
Sub SetImage(filePath As String)
Parameters
- filePath: String
Full path of the image file.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .