Class org.aswing.ASTextFormat

Description

unHandled TextFormat Properties :

  • TextFormat.leading
  • TextFormat.tabStops
  • TextFormat.target
  • TextFormat.url
  • Field Index

    CENTER, DEFAULT_ALIGN, DEFAULT_BLOCKINDENT, DEFAULT_BOLD, DEFAULT_BULLET, DEFAULT_COLOR, DEFAULT_EMBEDFONTS, DEFAULT_INDENT, DEFAULT_ITALIC, DEFAULT_LEFTMARGIN, DEFAULT_NAME, DEFAULT_RIGHTMARGIN, DEFAULT_SIZE, DEFAULT_UNDERLINE, LEFT, RIGHT

    Method Index

    applyToOneOfText(), applyToPartOfText(), applyToText(), applyToTextForNew(), clone(), getAlign(), getASFont(), getASTextFormatWithASFont(), getASTextFormatWithName(), getASTextFormatWithNameColor(), getASTextFormatWithNameSize(), getASTextFormatWithNameSizeColor(), getBlockIndent(), getBold(), getBullet(), getColor(), getEmbedFonts(), getEmptyASTextFormat(), getIndent(), getItalic(), getLeftMargin(), getName(), getRightMargin(), getSize(), getTextExtent(), getUnderline(), setAlign(), setASFont(), setBlockIndent(), setBold(), setBullet(), setColor(), setEmbedFonts(), setIndent(), setItalic(), setLeftMargin(), setName(), setRightMargin(), setSize(), setUnderline(), toString()

    Field Detail

    LEFT

    static public LEFT:Number
    align -> left

    CENTER

    static public CENTER:Number
    align -> center

    RIGHT

    static public RIGHT:Number
    align -> right

    DEFAULT_NAME

    static public DEFAULT_NAME:String
    Default values You can customize these values to match your major text format style And then just use little codes to set some special ones

    DEFAULT_SIZE

    static public DEFAULT_SIZE:Number

    DEFAULT_BOLD

    static public DEFAULT_BOLD:Boolean

    DEFAULT_ITALIC

    static public DEFAULT_ITALIC:Boolean

    DEFAULT_UNDERLINE

    static public DEFAULT_UNDERLINE:Boolean

    DEFAULT_EMBEDFONTS

    static public DEFAULT_EMBEDFONTS:Boolean

    DEFAULT_ALIGN

    static public DEFAULT_ALIGN:Number

    DEFAULT_BLOCKINDENT

    static public DEFAULT_BLOCKINDENT:Number

    DEFAULT_INDENT

    static public DEFAULT_INDENT:Number

    DEFAULT_BULLET

    static public DEFAULT_BULLET:Boolean

    DEFAULT_COLOR

    static public DEFAULT_COLOR:Number [Read Only]

    DEFAULT_LEFTMARGIN

    static public DEFAULT_LEFTMARGIN:Number

    DEFAULT_RIGHTMARGIN

    static public DEFAULT_RIGHTMARGIN:Number

    Method Detail

    getEmptyASTextFormat

    static public function getEmptyASTextFormat():ASTextFormat

    use these create methods to get an ASTextFormat instance

    getASTextFormatWithName

    static public function getASTextFormatWithName(name:String):ASTextFormat

    getASTextFormatWithNameSize

    static public function getASTextFormatWithNameSize(name:String, size:Number):ASTextFormat

    getASTextFormatWithNameColor

    static public function getASTextFormatWithNameColor(name:String, color:Number):ASTextFormat

    getASTextFormatWithNameSizeColor

    static public function getASTextFormatWithNameSizeColor(name:String, size:Number, color:Number):ASTextFormat

    getASTextFormatWithASFont

    static public function getASTextFormatWithASFont(font:ASFont):ASTextFormat

    setName

    public function setName(newName:String):Void

    getName

    public function getName():String

    setSize

    public function setSize(newSize:Number):Void

    getSize

    public function getSize():Number

    setBold

    public function setBold(newBold:Boolean):Void

    getBold

    public function getBold():Boolean

    setItalic

    public function setItalic(newItalic:Boolean):Void

    getItalic

    public function getItalic():Boolean

    setUnderline

    public function setUnderline(newUnderline:Boolean):Void

    getUnderline

    public function getUnderline():Boolean

    setAlign

    public function setAlign(newAlign:Number):Void

    getAlign

    public function getAlign():Number

    setBlockIndent

    public function setBlockIndent(newBlockIndent:Number):Void

    getBlockIndent

    public function getBlockIndent():Number

    setIndent

    public function setIndent(newIndent:Number):Void

    getIndent

    public function getIndent():Number

    setBullet

    public function setBullet(newBullet:Boolean):Void

    getBullet

    public function getBullet():Boolean

    setColor

    public function setColor(newColor:Number):Void

    getColor

    public function getColor():Number

    setLeftMargin

    public function setLeftMargin(newLeftMargin:Number):Void

    getLeftMargin

    public function getLeftMargin():Number

    setRightMargin

    public function setRightMargin(newRightMargin:Number):Void

    getRightMargin

    public function getRightMargin():Number

    setEmbedFonts

    public function setEmbedFonts(b:Boolean):Void

    getEmbedFonts

    public function getEmbedFonts():Boolean

    getTextExtent

    public function getTextExtent(text:String, wrapWidth:Number):ASTextExtent

    setASFont

    public function setASFont(font:ASFont):Void

    getASFont

    public function getASFont():ASFont

    applyToText

    public function applyToText(text:TextField):Void

    apply to the whole TextField

    applyToPartOfText

    public function applyToPartOfText(text:TextField, begin:Number, end:Number):Void

    apply to part of the TextField

    applyToOneOfText

    public function applyToOneOfText(text:TextField, index:Number):Void

    apply one char of the TextField

    applyToTextForNew

    public function applyToTextForNew(text:TextField):Void

    apply for new Text of the TextField

    clone

    public function clone():ASTextFormat

    toString

    public function toString():String