This page was saved using jaction on 2006-09-04 8:34:11.
Address: http://flexdocs.kr/docs/flex2/langref/mx/core/UITextFormat.html
Title: mx.core.UITextFormat (Flex™ 2 레퍼런스 가이드)  •  Size: 50125
Packagemx.core
Classpublic class UITextFormat
InheritanceUITextFormat Inheritance TextFormat Inheritance Object

UITextFormat 클래스는, UITextField 클래스의 캐릭터 포맷 정보를 나타냅니다. UITextField 클래스는, 많은 Flex 복합 컴퍼넌트가 텍스트를 표시하기 위해서 사용하는 컴퍼넌트를 정의합니다.

UITextFormat 클래스는 Flash Player 의 TextFormat 클래스를 확장해, 텍스트 값수 Methods measureText()measureHTMLText() 를 추가해, FlashType 폰트 렌더러를 제어하기 위한 property를 추가합니다.

See also

mx.core.UITextField


Public property
 property정의
 Inheritedalign : String
단락의 정렬의 설정을 나타냅니다.
TextFormat
  antiAliasType : String
UITextField 클래스의 에일리어징 제거 설정을 정의합니다.
UITextFormat
 InheritedblockIndent : Object
블록의 인덴트를 픽셀 단위로 가리킵니다.
TextFormat
 Inheritedbold : Object
텍스트를 볼드로 할지 어떨지를 지정합니다.
TextFormat
 Inheritedbullet : Object
텍스트가 조목별로 나누어 쓴 글 리스트에 있을지 어떨지를 나타냅니다.
TextFormat
 Inheritedcolor : Object
텍스트의 색을 나타냅니다.
TextFormat
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
 Inheritedfont : String
이 텍스트 포맷에서의 텍스트 폰트명을 나타내는 string입니다.
TextFormat
  gridFitType : String
UITextField 클래스의 grid fitting 설정을 정의합니다.
UITextFormat
 Inheritedindent : Object
왼쪽 마진으로부터 단락의 선두 캐릭터까지의 인덴트를 나타냅니다.
TextFormat
 Inheriteditalic : Object
이 텍스트 포맷의 텍스트를 이탤릭으로 할지 어떨지를 나타냅니다.
TextFormat
 Inheritedkerning : Object
kerning가 유효한가 (true) 무효인지 (false)를 나타내는 불리언 값입니다.
TextFormat
 Inheritedleading : Object
행간의 수직의 행송를 나타내는 정수입니다.
TextFormat
 InheritedleftMargin : Object
단락의 왼쪽 마진을 픽셀 단위로 가리킵니다.
TextFormat
 InheritedletterSpacing : Object
모든 캐릭터간에 균등하게 배분되는 스페이스의 양을 나타내는 정수입니다.
TextFormat
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
 InheritedrightMargin : Object
단락의 오른쪽 마진을 픽셀 단위로 가리킵니다.
TextFormat
  sharpness : Number
UITextField 클래스의 샤프니스 설정을 정의합니다.
UITextFormat
 Inheritedsize : Object
이 텍스트 포맷에서의 텍스트의 포인트 크기입니다.
TextFormat
 InheritedtabStops : Array
custom tab stop를 부 이외의 정수의 배열로서 지정합니다.
TextFormat
 Inheritedtarget : String
하이퍼 링크를 표시하는 타겟 윈도우를 나타냅니다.
TextFormat
  thickness : Number
UITextField 클래스의 굵기 설정을 정의합니다.
UITextFormat
 Inheritedunderline : Object
이 텍스트 포맷을 사용하는 텍스트에 언더라인을 표시하는지 (true), 또는 표시하지 않는가 (false)를 나타냅니다.
TextFormat
 Inheritedurl : String
이 텍스트 포맷의 텍스트의 대상 URL 를 나타냅니다.
TextFormat
Public Methods
 Methods정의
  UITextFormat (systemManager:ISystemManager , font:String = null, size:Object = null, color:Object = null, bold:Object = null, italic:Object = null, underline:Object = null, url:String = null, target:String = null, align:String = null, leftMargin:Object = null, rightMargin:Object = null, indent:Object = null, leading:Object = null)
constructor   .
UITextFormat
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
  measureHTMLText (htmlText:String ):TextLineMetrics
지정된 HTML 텍스트의 값수 정보를 돌려줍니다. HTML 텍스트에는 <font><b> 등의 HTML 태그가 포함되는 경우가 있습니다. 단일행의 UITextField 에 표시되는 것으로 해, 이 UITextFormat object를 사용해 텍스트 포맷을 정의합니다.
UITextFormat
  measureText (text:String ):TextLineMetrics
지정된 텍스트의 값수 정보를 돌려줍니다. 단일행의 UITextField 컴퍼넌트에 표시되는 것으로 해, 이 UITextFormat object를 사용해 텍스트 포맷을 정의합니다.
UITextFormat
 InheritedpropertyIsEnumerable (name:String ):Boolean
지정된 property가 존재해, 열거 가능한가 어떤가를 나타냅니다.
Object
 InheritedsetPropertyIsEnumerable (name:String , isEnum:Boolean = true):void
루프 처리에 대한 다이나믹 property의 가용성을 설정합니다.
Object
 InheritedtoString ():String
지정된 object의 string 표현을 돌려줍니다.
Object
 InheritedvalueOf ():Object
지정된 object의 원시적치를 돌려줍니다.
Object
property의 상세
antiAliasTypeproperty
public var antiAliasType:String

UITextField 클래스의 에일리어징 제거 설정을 정의합니다. 유효한 값은,"normal" (flash.text.AntiAliasType.NORMAL) 및 "advanced" (flash.text.AntiAliasType.ADVANCED)입니다.

디폴트치는 "advanced" 입니다. 이 경우, 포함(Embed)되어 있는 FlashType 폰트를 사용하고 있으면 FlashType 렌더러가 유효하게 됩니다. 이 property를 "normal" 로 설정하면, FlashType 렌더러가 무효가 됩니다.

이 property는, 시스템 폰트에는 영향을 주지 않습니다.

이 property는, UITextField object의 모든 텍스트에 적용됩니다. 일부의 캐릭터인 만큼 적용할 수 없습니다.

디폴트치"advanced".

See also

gridFitTypeproperty 
public var gridFitType:String

UITextField 클래스의 grid fitting 설정을 정의합니다. 가능한 값은,"none" (flash.text.GridFitType.NONE),"pixel" (flash.text.GridFitType.PIXEL), 및 "subpixel" (flash.text.GridFitType.SUBPIXEL)입니다.

이 property가 적용되는 것은, 포함(Embed)되어 있는 FlashType 폰트를 사용해,fontAntiAliasType property가 "advanced" 로 설정되어 있는 경우만입니다.

이 property는, 시스템 폰트에는 영향을 주지 않습니다.

이 property는, UITextField object의 모든 텍스트에 적용됩니다. 일부의 캐릭터인 만큼 적용할 수 없습니다.

디폴트치"pixel".

See also

sharpnessproperty 
public var sharpness:Number

UITextField 클래스의 샤프니스 설정을 정의합니다. 이 property는 자형의 엣지의 샤프니스를 지정합니다. 가능한 값은 -400 으로부터 400 까지의 수치입니다.

이 property가 적용되는 것은, 포함(Embed)되어 있는 FlashType 폰트를 사용해,fontAntiAliasType property가 "advanced" 로 설정되어 있는 경우만입니다.

이 property는, 시스템 폰트에는 영향을 주지 않습니다.

이 property는, UITextField object의 모든 텍스트에 적용됩니다. 일부의 캐릭터인 만큼 적용할 수 없습니다.

디폴트치0.

See also

thicknessproperty 
public var thickness:Number

UITextField 클래스의 굵기 설정을 정의합니다. 이 property는 자형의 엣지의 굵기를 지정합니다. 가능한 값은 -200 으로부터 200 까지의 수치입니다.

이 property가 적용되는 것은, 포함(Embed)되어 있는 FlashType 폰트를 사용해,fontAntiAliasType property가 "advanced" 로 설정되어 있는 경우만입니다.

이 property는, 시스템 폰트에는 영향을 주지 않습니다.

이 property는, UITextField object의 모든 텍스트에 적용됩니다. 일부의 캐릭터인 만큼 적용할 수 없습니다.

디폴트치0.

See also

constructor    의 상세
UITextFormat()constructor   
public 함수 UITextFormat(systemManager:ISystemManager , font:String = null, size:Object = null, color:Object = null, bold:Object = null, italic:Object = null, underline:Object = null, url:String = null, target:String = null, align:String = null, leftMargin:Object = null, rightMargin:Object = null, indent:Object = null, leading:Object = null)

constructor   .

Parameters
systemManager:ISystemManager — SystemManager object입니다. SystemManager 는 어느 폰트가 포함되고 있는지를 추적합니다. 통상, 이것은 UIComponent 의 systemManager property로부터 취득된 SystemManager 입니다.
 
font:String (default = null) — 폰트의 이름을 지정하는 string입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
size:Object (default = null) — font size를 지정하는 수치입니다 (픽셀 단위). null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
color:Object (default = null) — 텍스트의 RGB 칼라를 지정하는 부호 없음 정수입니다. 예를 들어, 빨강은 0xFF0000 입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
bold:Object (default = null) — 텍스트가 bold인가 어떤가를 지정하는 Boolean 플래그입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
italic:Object (default = null) — 텍스트가 이탤릭체인가 어떤가를 지정하는 Boolean 플래그입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
underline:Object (default = null) — 텍스트가 밑줄 첨부인가 어떤가를 지정하는 Boolean 플래그입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
url:String (default = null) — 텍스트의 하이퍼 링크처의 URL 를 지정하는 string입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
target:String (default = null) — 하이퍼 링크처의 URL 를 표시하는 타겟 윈도우를 지정한 string입니다. 타겟 윈도우가 null 또는 empty의 string인 경우, 하이퍼 링크처의 페이지는 같은 브라우저 윈도우에 표시됩니다. urlString Parameters가 null 또는 empty의 string의 경우, 이 property는 무효입니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
align:String (default = null) — 단락의 정렬의 설정을 flash.text.TextFormatAlign 값로서 지정하는 string입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
leftMargin:Object (default = null) — 단락의 왼쪽 마진을 지정하는 수치입니다 (픽셀 단위). null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
rightMargin:Object (default = null) — 단락의 오른쪽 마진을 지정하는 수치입니다 (픽셀 단위). null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
indent:Object (default = null) — 단락의 왼쪽 마진으로부터 최초의 캐릭터까지의 인덴트를 지정하는 수치입니다 (픽셀 단위). null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.
 
leading:Object (default = null) — 추가의 행간을 지정하는 수치입니다. null 는, 이 UITextFormat 가 이 property를 지정하고 있지 않는 것을 나타냅니다. 이 Parameters는 옵션이며, 디폴트치는 null 입니다.

See also

Methods의 상세
measureHTMLText()Methods
public function measureHTMLText(htmlText:String ):TextLineMetrics

지정된 HTML 텍스트의 값수 정보를 돌려줍니다. HTML 텍스트에는 <font><b> 등의 HTML 태그가 포함되는 경우가 있습니다. 단일행의 UITextField 에 표시되는 것으로 해, 이 UITextFormat object를 사용해 텍스트 포맷을 정의합니다.

Parameters
htmlText:String — 측정하는 HTML 텍스트를 지정하는 string입니다.

반환값
TextLineMetrics — 텍스트 값수를 포함한 TextLineMetrics object입니다.

See also

measureText()Methods 
public function measureText(text:String ):TextLineMetrics

지정된 텍스트의 값수 정보를 돌려줍니다. 단일행의 UITextField 컴퍼넌트에 표시되는 것으로 해, 이 UITextFormat object를 사용해 텍스트 포맷을 정의합니다.

Parameters
text:String — 측정하는 텍스트를 지정하는 string입니다.

반환값
TextLineMetrics — 텍스트 값수를 포함한 TextLineMetrics object입니다.

See also







 

코멘트가 추가되었을 경우, 메일로 받기. | 코멘트 리포트

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/core/UITextFormat.html