API Reference > Namespaces > OdPdfPublish Namespace > Classes > OdButton Class
OdButton Class
OdPdfPublish__OdButtonOdPdfPublish__OdButtonOdPdfPublish__OdButton
Syntax
C++
class OdButton : public OdObject;

PdfPublishButton.h

This class implements a button control encapsulated in a .pdf document created with Publish SDK. A button control is used in a .pdf document to implement a reaction to user actions (such as different kinds of mouse clicks). The button control appearance (how a button looks in a document) is defined by a set of special properties (for example, font, color, text and so on).

 
Name 
Description 
 
Destroys a button object. 
 
Name 
Description 
 
Returns whether the button has a border. The method fills a passed boolean value and returns it to a calling subroutine. If the button has a border, the method returns true, otherwise it returns false.
 
 
Returns the button border color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
 
 
Returns the button border style. The method fills a passed value with the current style and returns it to a calling subroutine.
 
 
Returns the button border thickness. The method fills a passed value with the current thickness value and returns it to a calling subroutine.
 
 
Returns the button fill color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
 
 
Returns the current button font parameters. The method fills passed values and returns them to a calling subroutine.
 
 
Returns the button font size. The method fills a passed value and returns it to a calling subroutine.
 
 
Returns the current button highlighting mode. The method fills a passed value and returns it to a calling subroutine.
 
 
Returns the button icon image. The method fills a passed OdImage object and returns it to a calling subroutine.
 
 
Returns the button label text. The method fills a passed string object with the label text and returns this string to a calling subroutine.
 
 
Returns the current button label position. The method fills a passed value and returns it to a calling subroutine.
 
 
Returns whether the button is locked. The method fills a passed boolean value and returns it to a calling subroutine. If the button is locked, the method returns true, otherwise it returns false.
 
 
Returns the button name. The method fills a passed string object with the name value and returns this string to a calling subroutine.
 
 
Returns the current flag value that defines whether the button should be printed. The method fills a passed boolean value and returns it to a calling subroutine. If the button should be printed, the method returns true, otherwise it returns false.
 
 
Returns the button text color. The method fills a passed ODCOLORREF value and returns it to a calling subroutine.
 
 
Returns the current button text rotation. The method fills a passed value with the current rotation and returns it to a calling subroutine.
 
 
Returns the button tooltip text. The method fills a passed string object and returns it to a calling subroutine.
 
 
Returns the current button visibility state. The method fills a passed boolean value and returns it to a calling subroutine. If the button is visible, the method returns true, otherwise it returns false.
 
 
Shows or hides a border around the button.
 
 
Sets the button border color.
 
 
Sets the button border style.
 
 
Sets the button border thickness.
 
 
Sets a color that is used for filling the button.
 
 
This is the overview for the setFont method overload. 
 
Sets the button font size.
 
 
Sets the button highlighting mode.
 
 
Sets the button icon image.
 
 
Sets the button label text.
 
 
Sets a position for the button label.
 
 
Locks or unlocks the button.
 
 
Sets the button name.
 
 
Sets the button behavior when a document is printed.
 
 
Sets the button text color. The text color is applied to the button label.
 
 
Sets the button text rotation.
 
 
Sets the button tooltip text. Tooltip text is text that appears when a user hovers the pointer over the button.
 
 
Sets the button visibility.
 
Copyright © 2002–2020. Open Design Alliance. All rights reserved.