Gets the RenderInputButton object representing the
accept button in the current document
(the first RenderInputButton object with AcceptButton property set to true).
Namespace:
C1.C1PreviewAssembly: C1.C1Report.2 (in C1.C1Report.2.dll)
Syntax
C# |
---|
[BrowsableAttribute(false)] public RenderInputButton AcceptButton { get; } |
Visual Basic |
---|
<BrowsableAttribute(False)> _ Public ReadOnly Property AcceptButton As RenderInputButton Get |
Examples
The following example assigns the AcceptButton to the RenderInputButton object:
Copy CodeVisual Basic
Dim doc As C1.C1Preview.C1PrintDocument = New C1.C1Preview.C1PrintDocument Dim rit1 As C1.C1Preview.RenderInputText = New C1.C1Preview.RenderInputText("Test") doc.Body.Children.Add(rit1) Dim rib1 As C1.C1Preview.RenderInputButton = New C1.C1Preview.RenderInputButton("Go!") rib1.InputActions.Add(C1.C1Preview.UserActionEnum.Click, New C1.C1Preview.ActionHandlerReflow) rib1.AcceptButton = True doc.Body.Children.Add(rib1) C1PrintPreviewControl1.Document = doc |
Copy CodeC#
C1.C1Preview.C1PrintDocument doc = new C1.C1Preview.C1PrintDocument(); C1.C1Preview.RenderInputText rit1 = new C1.C1Preview.RenderInputText("Test"); doc.Body.Children.Add(rit1); C1.C1Preview.RenderInputButton rib1 = new C1.C1Preview.RenderInputButton("Go!"); rib1.InputActions.Add(C1.C1Preview.UserActionEnum.Click, new C1.C1Preview.ActionHandlerReflow()); rib1.AcceptButton = true; doc.Body.Children.Add(rib1); c1PrintPreviewControl1.Document = doc; |