combit List & Label 25 - .NET Online Web Help
ResetPrintState Event
Example 


combit.ListLabel25 Namespace > DesignerObject Class : ResetPrintState Event
Is called by List & Label to reset a possible data source which the Designer object is linking to. This happens e.g. if you call the real data preview in the Designer if you where in the Layout mode before.
Syntax
'Declaration
 
Public Event ResetPrintState As ResetPrintStateDesignerObjectHandler
public event ResetPrintStateDesignerObjectHandler ResetPrintState
public:
event ResetPrintStateDesignerObjectHandler^ ResetPrintState
Example
class MyDesignerObject : DesignerObject
{
	// Custom member variables
	int _currentPrintingLineIndex = -1;
	bool _lastPage = false;
	// ...
	protected override void OnResetPrintStateDesignerObject(EventArgs e)
	{
		// Reset the data source
		_currentPrintingLineIndex = -1;
		_lastPage = false;
	}
	// ...
}
Class MyDesignerObject
	Inherits DesignerObject
	' Custom member variables
	Private _currentPrintingLineIndex As Integer = -1
	Private _lastPage As Boolean = False
	' ...
	Protected Overrides Sub OnResetPrintStateDesignerObject(e As EventArgs)
		' Reset the data source
		_currentPrintingLineIndex = -1
		_lastPage = False
	End Sub
	' ...
End Class
Requirements

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

See Also

Reference

DesignerObject Class
DesignerObject Members