Home Cooker Classes Others Rice CookerGX
Classes  >  elementeventargs  >  CtrlKeyPressed
elementeventargs class : CtrlKeyPressed getter

Description

Gets the value that indicates whether the CTRL key was pressed when this event occurred.

Syntax

elementeventargsInstance.CtrlKeyPressed

Arguments

None

Return value

ClassDescription
boolThe value that indicates whether the CTRL key was pressed when this event occurred.

Sample code

//anyElementeventargs is an any instance of elementeventargs type.

bool ctrlkey = anyElementeventargs.CtrlKeyPressed;

Notes

It's a wrapper of the System.Windows.Forms.HtmlElementEventArgs.CtrlKeyPressed.

Returns true if the CTRL key was pressed when this event occurred. Otherwise, returns false.

Links for reference

Copyright © Rice All rights reserved.