Previous Document Next Document

Understanding automation : What are the main elements of automation? : What is a method?


What is a method?

A method is like a verb in that it represents an action that can be performed by or on an object. In the example of a class “car,” the car can be made to go faster and slower, so two methods for the class are “accelerate” and “decelerate.”

In the context of CorelDRAW, documents have methods for creating new pages, layers have methods for creating new shapes, and shapes have methods for applying transformations and effects. For example, ActiveDocument.Close represents the Close method of a Document object; it closes the active document.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.