PRADO Component Framework for PHP 5
  • Home
  • About
  • Testimonials
  • Demos
  • Download
  • Documentation
  • Forum
  • Development
  • Tutorials
  • Class Docs
  • API Manual
  • Wiki

Packages

  • None
  • System
    • Caching
    • Collections
    • Data
      • ActiveRecord
        • Relations
        • Scaffold
          • InputBuilder
      • Commom
        • Sqlite
      • Common
        • Mssql
        • Mysql
        • Oracle
        • Pgsql
        • Sqlite
      • DataGateway
      • SqlMap
        • Configuration
        • Statements
    • Exceptions
    • I18N
    • IO
    • Security
    • Util
    • Web
      • Javascripts
      • Services
      • UI
        • ActiveControls
        • WebControls
    • Xml
  • Wsat
    • pages
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo

Class TFont

TFont class

TFont encapsulates the CSS style fields related with font settings.

TComponent
Extended by TFont
Package: System\Web\UI\WebControls
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/UI/WebControls/TFont.php
Methods summary
public boolean
# getBold( )

Returns

boolean
whether the font is in bold face. Defaults to false.
public
# setBold( boolean $value )

Parameters

$value
boolean
whether the font is in bold face
public boolean
# getItalic( )

Returns

boolean
whether the font is in italic face. Defaults to false.
public
# setItalic( boolean $value )

Parameters

$value
boolean
whether the font is italic
public boolean
# getOverline( )

Returns

boolean
whether the font is overlined. Defaults to false.
public
# setOverline( boolean $value )

Parameters

$value
boolean
whether the font is overlined
public string
# getSize( )

Returns

string
the font size
public
# setSize( string $value )

Parameters

$value
string
the font size
public boolean
# getStrikeout( )

Returns

boolean
whether the font is strikeout. Defaults to false.
public
# setStrikeout( boolean $value )

Parameters

$value
boolean
whether the font is strikeout
public boolean
# getUnderline( )

Returns

boolean
whether the font is underlined. Defaults to false.
public
# setUnderline( boolean $value )

Parameters

$value
boolean
whether the font is underlined
public string
# getName( )

Returns

string
the font name (family)
public
# setName( string $value )

Parameters

$value
string
the font name (family)
public boolean
# getIsEmpty( )

Returns

boolean
whether the font is empty
public
# reset( )

Clears up the font.

Clears up the font.

public
# mergeWith( TFont $font )

Merges the font with a new one. If a font field is not set in the font, it will be overwritten with the new one.

Merges the font with a new one. If a font field is not set in the font, it will be overwritten with the new one.

Parameters

$font
TFont
the new font
public
# copyFrom( TFont $font )

Copies the fields in a new font to this font. If a font field is set in the new font, the corresponding field in this font will be overwritten.

Copies the fields in a new font to this font. If a font field is set in the new font, the corresponding field in this font will be overwritten.

Parameters

$font
TFont
the new font
public string
# toString( )

Returns

string
the font in a css style string representation.
public
# addAttributesToRender( THtmlWriter $writer )

Adds attributes related to CSS styles to renderer.

Adds attributes related to CSS styles to renderer.

Parameters

$writer
THtmlWriter
the writer used for the rendering purpose
Methods inherited from TComponent
__call(), __construct(), __destruct(), __get(), __isset(), __set(), __sleep(), __unset(), __wakeup(), addParsedObject(), asa(), attachBehavior(), attachBehaviors(), attachClassBehavior(), attachEventHandler(), canGetProperty(), canSetProperty(), clearBehaviors(), createdOnTemplate(), detachBehavior(), detachBehaviors(), detachClassBehavior(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), evaluateStatements(), fxAttachClassBehavior(), fxDetachClassBehavior(), getAutoGlobalListen(), getBehaviorsEnabled(), getClassHierarchy(), getEventHandlers(), getListeningToGlobalEvents(), getSubProperty(), hasEvent(), hasEventHandler(), hasProperty(), isa(), listen(), raiseEvent(), setSubProperty(), unlisten()
Constants summary
integer IS_BOLD 0x01
#

Bits indicating the font states.

Bits indicating the font states.

integer IS_ITALIC 0x02
#
integer IS_OVERLINE 0x04
#
integer IS_STRIKEOUT 0x08
#
integer IS_UNDERLINE 0x10
#
integer IS_SET_BOLD 0x01000
#

Bits indicating whether particular font states are changed.

Bits indicating whether particular font states are changed.

integer IS_SET_ITALIC 0x02000
#
integer IS_SET_OVERLINE 0x04000
#
integer IS_SET_STRIKEOUT 0x08000
#
integer IS_SET_UNDERLINE 0x10000
#
integer IS_SET_SIZE 0x20000
#
integer IS_SET_NAME 0x40000
#
Constants inherited from TComponent
GLOBAL_RAISE_EVENT_LISTENER
Terms of Service | Contact Us
PRADO v3.2.4 API Manual API documentation generated by ApiGen 2.8.0
Copyright © 2006-2014 by the PRADO Group.
Powered by PRADO