Class HeaderFooterData
The HeaderFooterData class encapsulates the header and footer settings for the diagram. Used by the Model class for configuring the header and footer when printing the diagram. HeaderFooterData
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Diagram
Assembly: Syncfusion.Diagram.Base.dll
Syntax
public class HeaderFooterData : ISerializable, ICloneable
Constructors
HeaderFooterData()
Initializes a new instance of the HeaderFooterData class.
Declaration
public HeaderFooterData()
HeaderFooterData(HeaderFooterData)
Initializes a new instance of the HeaderFooterData class.
Declaration
public HeaderFooterData(HeaderFooterData dpd)
Parameters
Type | Name | Description |
---|---|---|
HeaderFooterData | dpd | The source HeaderFooterData. |
HeaderFooterData(SerializationInfo, StreamingContext)
Initializes a new instance of the HeaderFooterData class.
Declaration
public HeaderFooterData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The info. |
System.Runtime.Serialization.StreamingContext | context | The context. |
Properties
Culture
Gets or sets the culture information for the header and footer data.
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | The culture. |
DefaultPaperSize
Gets the size of the default paper.
Declaration
public static PaperSize DefaultPaperSize { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Printing.PaperSize | The size of the default paper. |
Footer
Gets or sets the diagram print Footer.
Declaration
public Footer Footer { get; set; }
Property Value
Type |
---|
Footer |
Header
Gets or sets the diagram Header.
Declaration
public Header Header { get; set; }
Property Value
Type |
---|
Header |
Methods
Clone()
Creates a new object that is a copy of the current instance.
Declaration
public object Clone()
Returns
Type | Description |
---|---|
System.Object | A new object that is a copy of this instance. |
GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
protected virtual void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |
InitializeHeaderFooterBounds(PageSettings)
Initializes the header and footer using the paper size and margins specified by the PageSettings value.
Declaration
public void InitializeHeaderFooterBounds(PageSettings pagesettings)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Printing.PageSettings | pagesettings | A System.Drawing.Printing.PageSettings value. |
InitializeHeaderFooterBounds(PaperSize, Margins)
Initializes the header and footer layout using the specified paper size and page margins.
Declaration
public void InitializeHeaderFooterBounds(PaperSize papersize, Margins pagemargins)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Printing.PaperSize | papersize | A System.Drawing.Printing.PaperSize value. |
System.Drawing.Printing.Margins | pagemargins | A System.Drawing.Printing.Margins value. |
ResetCulture()
Resets the culture.
Declaration
protected void ResetCulture()
ShouldSerializeCulture()
Check if should to serialize culture.
Declaration
protected bool ShouldSerializeCulture()
Returns
Type | Description |
---|---|
System.Boolean | true, if serialize culture. |
Explicit Interface Implementations
ISerializable.GetObjectData(SerializationInfo, StreamingContext)
Populates a System.Runtime.Serialization.SerializationInfo with the data needed to serialize the target object.
Declaration
void ISerializable.GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
System.Runtime.Serialization.StreamingContext | context | The destination (see System.Runtime.Serialization.StreamingContext) for this serialization. |
Exceptions
Type | Condition |
---|---|
System.Security.SecurityException | The caller does not have the required permission. |