This page was saved using jaction on 2006-09-04 8:34:07.
Address: http://flexdocs.kr/docs/flex2/langref/mx/controls/textClasses/TextRange.html
Title: mx.controls.textClasses.TextRange (Flex™ 2 레퍼런스 가이드)  •  Size: 41721
Packagemx.controls.textClasses
Classpublic class TextRange
InheritanceTextRange Inheritance Object

TextRange 클래스는, Label, Text, TextArea, TextEditor, 및 RichTextEditor 컨트롤내의 텍스트를 일정한 범위에서 선택해, 포맷 하는 property를 제공합니다.

See also

mx.controls.Label
mx.controls.RichTextEditor
mx.controls.Text
mx.controls.TextArea
mx.controls.TextInput
flash.text.TextFormatAlign


Public property
 property정의
  beginIndex : int
컨트롤의 텍스트 필드내의 0 베이스 인덱스로, 범위내의 최초의 캐릭터를 나타냅니다.
TextRange
  bullet : Boolean
범위내의 텍스트가 조목별로 나누어 쓴 글인가 어떤가를 나타냅니다.
TextRange
  color : Object
범위내의 텍스트의 색입니다.
TextRange
 Inheritedconstructor : Object
특정의 object 인스턴스의 클래스 object 또는 constructor    함수에의 참조입니다.
Object
  endIndex : int
컨트롤의 텍스트 필드의 위치에서, 범위내의 마지막 캐릭터의 직후의 위치를 나타내는 0 으로부터 시작되는 인덱스입니다. 마지막 캐릭터의 1 으로부터 시작되는 인덱스에 상당합니다.
TextRange
  fontFamily : String
범위내의 텍스트의 폰트명입니다.
TextRange
  fontSize : int
범위내의 텍스트의 포인트 크기입니다.
TextRange
  fontStyle : String
"italic" 또는 "normal" 로 범위내의 폰트의 스타일을 나타냅니다.
TextRange
  fontWeight : String
"bold" 또는 "normal" 로 범위내의 폰트의 굵기를 나타냅니다.
TextRange
  htmlText : String
범위의 HTML 텍스트 형식의 컨텐츠입니다.
TextRange
  modifiesSelection : Boolean
[read-only] TextRange 가 현재 선택되고 있는 텍스트를 변경할지 어떨지를 지정합니다.
TextRange
  owner : UIComponent
텍스트를 포함한 컨트롤입니다.
TextRange
 Inheritedprototype : Object
[static] 클래스 또는 함수 object의 prototype object에의 참조입니다.
Object
  text : String
범위의 plaintext 컨텐츠입니다.
TextRange
  textAlign : String
범위내의 텍스트의 정렬입니다.
TextRange
  textDecoration : String
"underline" 또는 "normal" 로 범위내의 폰트의 장식을 나타냅니다.
TextRange
  url : String
범위내의 하이퍼 링크의 URL 입니다.
TextRange
Public Methods
 Methods정의
  TextRange (owner:UIComponent , modifiesSelection:Boolean = false, beginIndex:int = -1, endIndex:int = -1)
포맷 정보를 포함한 텍스트 컨트롤의 컨텐츠의 부분집합을 나타내는 TextRange object를 신규에 작성합니다.
TextRange
 InheritedhasOwnProperty (name:String ):Boolean
object로 지정된 property가 정의되고 있는지 어떤지를 나타냅니다.
Object
 InheritedisPrototypeOf (theClass:Object ):Boolean
Object 클래스의 인스턴스가, Parameters로서 지정된 object의 prototype 체인내에 있을지 어떨지를 나타냅니다.
Object
 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의 상세
beginIndexproperty
beginIndex:int   [read-write]

컨트롤의 텍스트 필드내의 0 베이스 인덱스로, 범위내의 최초의 캐릭터를 나타냅니다. 텍스트의 5 번째의 캐릭터가 범위내의 최초의 캐릭터의 경우, 이 property의 값은 4 가 됩니다.

Implements
    public function get beginIndex():int
    public function set beginIndex(value:int ):void
bulletproperty 
bullet:Boolean   [read-write]

범위내의 텍스트가 조목별로 나누어 쓴 글인가 어떤가를 나타냅니다. 범위내의 텍스트의 일부만이 조목별로 나누어 쓴 글의 경우, 값은 false 입니다.

Implements
    public function get bullet():Boolean
    public function set bullet(value:Boolean ):void
colorproperty 
color:Object   [read-write]

범위내의 텍스트의 색입니다. 유효한 칼라 식별자를 사용해 값을 설정할 수 있습니다. 이 property는 수치를 돌려줍니다. 범위내에 복수의 색이 있는 경우, 값은 null 입니다.

Implements
    public function get color():Object
    public function set color(value:Object ):void
endIndexproperty 
endIndex:int   [read-write]

컨트롤의 텍스트 필드의 위치에서, 범위내의 마지막 캐릭터의 직후의 위치를 나타내는 0 으로부터 시작되는 인덱스입니다. 마지막 캐릭터의 1 으로부터 시작되는 인덱스에 상당합니다. 텍스트의 5 번째의 캐릭터가 범위내의 마지막 캐릭터의 경우, 이 property의 값은 5 가 됩니다.

Implements
    public function get endIndex():int
    public function set endIndex(value:int ):void
fontFamilyproperty 
fontFamily:String   [read-write]

범위내의 텍스트의 폰트명입니다. 범위내에 복수의 폰트가 있는 경우, 값은 null 입니다.

Implements
    public function get fontFamily():String
    public function set fontFamily(value:String ):void
fontSizeproperty 
fontSize:int   [read-write]

범위내의 텍스트의 포인트 크기입니다. 범위내의 텍스트에 복수의 크기가 있는 경우, 값은 0 입니다.

Implements
    public function get fontSize():int
    public function set fontSize(value:int ):void
fontStyleproperty 
fontStyle:String   [read-write]

"italic" 또는 "normal" 로 범위내의 폰트의 스타일을 나타냅니다. 이 property를 이외의 string로 지정하면,"normal" 가 됩니다. 범위내의 텍스트에 복수의 스타일이 있는 경우, 값은 null 입니다.

Implements
    public function get fontStyle():String
    public function set fontStyle(value:String ):void
fontWeightproperty 
fontWeight:String   [read-write]

"bold" 또는 "normal" 로 범위내의 폰트의 굵기를 나타냅니다. 이 property를 이외의 string로 지정하면,"normal" 가 됩니다. 범위내의 텍스트에 복수의 굵기가 있는 경우, 값은 null 입니다.

Implements
    public function get fontWeight():String
    public function set fontWeight(value:String ):void
htmlTextproperty 
htmlText:String   [read-write]

범위의 HTML 텍스트 형식의 컨텐츠입니다. 이 property는, 범위에서 사용되는 모든 HTML 마크 업을 돌려줍니다. 이것에는,htmlText property를 사용해 지정한 HTML 뿐만이 아니라, Flex 에 의해 적용되고 있는 포맷의 마크 업도 포함됩니다. 따라서, 이 property는, 컨트롤에 표시되는 텍스트의 완전한 HTML 표현을 나타냅니다.

Implements
    public function get htmlText():String
    public function set htmlText(value:String ):void
modifiesSelectionproperty 
modifiesSelection:Boolean   [read-only]

TextRange 가 현재 선택되고 있는 텍스트를 변경할지 어떨지를 지정합니다. constructor    에 의해 설정됩니다.

Implements
    public function get modifiesSelection():Boolean
ownerproperty 
owner:UIComponent   [read-write]

텍스트를 포함한 컨트롤입니다. owner 컨트롤에는 textField property가 필요합니다. RichTextEditor 컨트롤의 경우는 textArea property가 필요합니다. RichTextEditor 컨트롤내의 텍스트의 오너는 RichTextEditor 컨트롤이며, TextArea 서브 컨트롤이 아닙니다. 초기치는 constructor    에 의해 설정됩니다.

Implements
    public function get owner():UIComponent
    public function set owner(value:UIComponent ):void
textproperty 
text:String   [read-write]

범위의 plaintext 컨텐츠입니다.

Implements
    public function get text():String
    public function set text(value:String ):void
textAlignproperty 
textAlign:String   [read-write]

범위내의 텍스트의 정렬입니다. flash.text.TextFormatAlign 정수로 유효한 값을 지정합니다. 다른 값으로 설정하면, 이 property는 무효가 됩니다. 범위내의 텍스트에 복수의 정렬이 있는 경우, 값은 null 입니다.

Implements
    public function get textAlign():String
    public function set textAlign(value:String ):void

See also

textDecorationproperty 
textDecoration:String   [read-write]

"underline" 또는 "normal" 로 범위내의 폰트의 장식을 나타냅니다. 이 property를 이외의 string로 지정하면,"normal" 가 됩니다. 범위내의 텍스트에 복수의 장식이 설정되어 있는 경우, 값은 null 입니다.

Implements
    public function get textDecoration():String
    public function set textDecoration(value:String ):void
urlproperty 
url:String   [read-write]

범위내의 하이퍼 링크의 URL 입니다. 범위내에 링크가 포함되지 않는 경우, 값은 empty의 string입니다. 범위내에 복수의 링크가 포함되는 경우, 값은 null 입니다.

Implements
    public function get url():String
    public function set url(value:String ):void
constructor    의 상세
TextRange()constructor   
public 함수 TextRange(owner:UIComponent , modifiesSelection:Boolean = false, beginIndex:int = -1, endIndex:int = -1)

포맷 정보를 포함한 텍스트 컨트롤의 컨텐츠의 부분집합을 나타내는 TextRange object를 신규에 작성합니다.

Parameters
owner:UIComponent — 텍스트를 포함한 컨트롤입니다. 컨트롤은,textField property를 가질 필요가 있습니다. 또는, RichTextEditor 컨트롤과 같이,textArea property를 가질 필요가 있습니다.
 
modifiesSelection:Boolean (default = false) — 범위내의 텍스트를 선택할지 어떨지를 지정합니다. 이 Parameters를 true 로 설정해, 컨트롤내의 텍스트에 대응하는 개시 인덱스와 종료 인덱스를 지정하지 않으면 현재의 텍스트 범위의 개시 및 종료 인덱스가 사용됩니다. 이 Parameters가 true 로,beginIndex Parameters와 endIndex Parameters를 생략 해, 선택 범위가 없는 경우는, TextRange object는 empty입니다.
 
beginIndex:int (default = -1) — 범위내의 최초의 캐릭터를 나타내는 0 베이스의 인덱스치입니다. modifiesSelection Parameters가 false 일 때, 이 Parameters를 생략 하는지, 부의 값을 지정하면, 범위의 개시 위치는, 텍스트의 최초의 캐릭터가 됩니다.
 
endIndex:int (default = -1) — 범위내의 마지막 캐릭터의직후의 위치를 나타내는 0 베이스의 인덱스치입니다. modifiesSelection Parameters가 false 일 때, 이 Parameters를 생략 하는, 부의 값을 지정한다, 또는 텍스트의 종점을 넘는 값을 지정하는, 의 어느쪽이든을 실시하면, 범위의 종료 위치는, 텍스트의 마지막 캐릭터가 됩니다.






 

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

현재의 페이지: http://flexdocs.kr/docs/flex2/langref/mx/controls/textClasses/TextRange.html