GetClassType
Returns a type of the ApiDateForm class.
Syntax
expression.GetClassType();
expression
- A variable that represents a ApiDateForm class.
Parameters
This method doesn't have any parameters.
Returns
"dateForm"
Example
This example gets a class type and pastes it into the presentation.
- Code
- Result
// How to get a class type of ApiDateForm.
// Retrieve class type of ApiDateForm object and insert it to the slide.
let doc = Api.GetDocument();
let dateForm = Api.CreateDateForm({"key": "Nowadays", "tip": "Enter current date", "required": true, "placeholder": "Your date here", "format": "mm.dd.yyyy", "lang": "en-US"});
let paragraph = doc.GetElement(0);
paragraph.AddElement(dateForm);
let classType = dateForm.GetClassType();
paragraph = Api.CreateParagraph();
paragraph.AddText("Class type: " + classType);
doc.Push(paragraph);