combit List & Label 25 - .NET Online Web Help
PrintFinished Property
Example 


combit.ListLabel25 Namespace > DrawDesignerObjectEventArgs Class : PrintFinished Property
With this property List & Label is notified that no further data for the Designer object is available for printing and that List & Label is not asking for them anymore by DrawDesignerObject or GetFieldHeightInformation.
Syntax
'Declaration
 
Public Property PrintFinished As Boolean
public bool PrintFinished {get; set;}
public:
property bool PrintFinished {
   bool get();
   void set (    bool value);
}
Example
class MyDesignerObject : DesignerObject
{
	// ...
	protected override void OnDrawDesignerObject(DrawDesignerObjectEventArgs e)
	{
		// Design mode or print mode?
		if (e.IsDesignMode)
			e.PrintFinished = true;
		else
			e.PrintFinished = _lastPage; // Last page?
		
		// ...
	}
	// ...
}
Class MyDesignerObject
	Inherits DesignerObject
	' ...
	Protected Overrides Sub OnDrawDesignerObject(e As DrawDesignerObjectEventArgs)
		' Design mode or print mode?
		If e.IsDesignMode Then
			e.PrintFinished = True
		Else
			e.PrintFinished = _lastPage ' Last page?
		End If
		' ...
	End Sub
	' ...
End Class
Requirements

Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also

Reference

DrawDesignerObjectEventArgs Class
DrawDesignerObjectEventArgs Members