A synecdoche is a type of trope or figure of speech in which a part of something is used to denote or symbolize the whole.
For example, when a person says that “they were over the keyboard for the whole day”, where the keyboard means the whole – a computer and on a larger scale the work desk and even the workplace (or task).