| 패키지 | flashx.textLayout.formats |
| 클래스 | public class TabStopFormat |
| 상속 | TabStopFormat Object |
| 구현 | ITabStopFormat |
| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
TextLayoutFormat.tabstops 속성을 TabStopFormat 객체 배열에 설정할 수 있습니다.
관련 API 요소
| 속성 | 정의 주체 | ||
|---|---|---|---|
| alignment : *
이 탭 정지의 탭 정렬입니다. | TabStopFormat | ||
![]() | constructor : Object
지정된 객체 인스턴스의 클래스 객체 또는 생성자 함수에 대한 참조입니다. | Object | |
| decimalAlignmentToken : *
정렬이 DECIMAL인 경우 사용되는 정렬 토큰입니다. | TabStopFormat | ||
| defaultFormat : flashx.textLayout.formats:ITabStopFormat [정적] [읽기 전용]
기본 설정을 사용하여 TabStopFormat 객체를 반환합니다. | TabStopFormat | ||
| position : *
열이 시작되는 가장자리를 기준으로 하는 탭 정지의 위치(픽셀 단위)입니다. | TabStopFormat | ||
| 메서드 | 정의 주체 | ||
|---|---|---|---|
TabStopFormat(initialValues:flashx.textLayout.formats:ITabStopFormat = null)
새 TabStopFormat 객체를 만듭니다. | TabStopFormat | ||
이 TabStopFormat 객체의 속성 값을 들어오는 ITabStopFormat 인스턴스에 설정된 속성 값으로 대체합니다. | TabStopFormat | ||
들어오는 ITabStopFormat 인스턴스의 속성 값을 이 TabStopFormat 객체의 값과 연결합니다. | TabStopFormat | ||
들어오는 ITabStopFormat 인스턴스의 속성 값을 이 TabStopFormat 객체의 값과 연결합니다. | TabStopFormat | ||
TabStopFormat 설정을 ITabStopFormat 인스턴스 값에서 이 TabStopFormat 객체로 복사합니다. | TabStopFormat | ||
스타일 이름을 지정하는 styleProp 매개 변수를 통해 지정된 스타일의 값을 반환합니다. | TabStopFormat | ||
![]() |
지정된 속성이 객체에 정의되어 있는지 여부를 나타냅니다. | Object | |
isEqual(p1:flashx.textLayout.formats:ITabStopFormat, p2:flashx.textLayout.formats:ITabStopFormat):Boolean [정적]
ITabStopFormat 인스턴스 p1의 속성을 ITabStopFormat 인스턴스 p2의 속성과 비교하여 모든 속성이 일치하면 true를 반환합니다. | TabStopFormat | ||
![]() |
Object 클래스의 인스턴스가 매개 변수로 지정된 객체의 프로토타입 체인에 있는지 여부를 나타냅니다. | Object | |
![]() |
지정된 속성이 존재하고 열거 가능한지 여부를 나타냅니다. | Object | |
TabStopFormat 객체의 속성이 들어오는 ITabStopFormat 인스턴스의 속성과 일치하지 않는 경우 이 TabStopFormat 객체의 속성을 undefined로 설정합니다. | TabStopFormat | ||
TabStopFormat 객체의 속성이 들어오는 ITabStopFormat 인스턴스의 속성과 일치하는 경우 이 TabStopFormat 객체의 속성을 undefined로 설정합니다. | TabStopFormat | ||
![]() |
루프 작업에서 동적 속성을 사용할 수 있는지 여부를 설정합니다. | Object | |
스타일 이름을 지정하는 styleProp 매개 변수를 통해 지정된 스타일의 값을 value로 설정합니다. | TabStopFormat | ||
![]() |
로캘별 규칙에 따라 서식이 지정된 이 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 문자열 표현을 반환합니다. | Object | |
![]() |
지정된 객체의 프리미티브 값을 반환합니다. | Object | |
alignment | 속성 |
alignment:*| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
이 탭 정지의 탭 정렬입니다.
올바른 값은 TabAlignment.START, TabAlignment.CENTER, TabAlignment.END, TabAlignment.DECIMAL, FormatValue.INHERIT입니다.
기본값은 설정되지 않았음을 나타내는 undefined입니다.
겹쳐 놓기 동안 undefined인 경우 이 속성의 값은 TabAlignment.START입니다.
구현
public function get alignment():* public function set alignment(value:any):void오류
RangeError — 설정한 값이 이 속성의 범위 내에 없는 경우입니다.
|
관련 API 요소
decimalAlignmentToken | 속성 |
decimalAlignmentToken:*| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
정렬이 DECIMAL인 경우 사용되는 정렬 토큰입니다.
기본값은 설정되지 않았음을 나타내는 undefined입니다.
겹쳐 놓기 동안 undefined인 경우 이 속성의값은 null입니다.
구현
public function get decimalAlignmentToken():* public function set decimalAlignmentToken(value:any):void오류
RangeError — 설정한 값이 이 속성의 범위 내에 없는 경우입니다.
|
defaultFormat | 속성 |
defaultFormat:flashx.textLayout.formats:ITabStopFormat [읽기 전용] | 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
기본 설정을 사용하여 TabStopFormat 객체를 반환합니다. 이 함수는 항상 동일한 객체를 반환합니다.
구현
public static function get defaultFormat():flashx.textLayout.formats:ITabStopFormatposition | 속성 |
position:*| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
열이 시작되는 가장자리를 기준으로 하는 탭 정지의 위치(픽셀 단위)입니다.
올바른 값은 0~10,000 범위의 숫자와 FormatValue.INHERIT입니다.
기본값은 설정되지 않았음을 나타내는 undefined입니다.
겹쳐 놓기 동안 undefined인 경우 이 속성의 값은 0입니다.
구현
public function get position():* public function set position(value:any):void오류
RangeError — 설정한 값이 이 속성의 범위 내에 없는 경우입니다.
|
관련 API 요소
TabStopFormat | () | 생성자 |
public function TabStopFormat(initialValues:flashx.textLayout.formats:ITabStopFormat = null)| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
새 TabStopFormat 객체를 만듭니다. 모든 설정은 비어 있거나 제공된 initialValues 객체에서 초기화(선택 사항)되어 있습니다.
initialValues:flashx.textLayout.formats:ITabStopFormat (default = null) — 초기 값을 복사해 올 선택적 인스턴스입니다.
|
관련 API 요소
apply | () | 메서드 |
public function apply(incoming:flashx.textLayout.formats:ITabStopFormat):void| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
이 TabStopFormat 객체의 속성 값을 들어오는 ITabStopFormat 인스턴스에 설정된 속성 값으로 대체합니다. 들어오는 ITabStopFormat 인스턴스의 undefined 속성은 이 객체에서 변경되지 않습니다.
매개 변수
incoming:flashx.textLayout.formats:ITabStopFormat — 이 TabStopFormat 객체에 적용된 속성 값을 가진 인스턴스입니다.
|
concat | () | 메서드 |
public function concat(incoming:flashx.textLayout.formats:ITabStopFormat):void| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
들어오는 ITabStopFormat 인스턴스의 속성 값을 이 TabStopFormat 객체의 값과 연결합니다. 이 (받는) TabStopFormat 객체에서 값이 FormatValue.INHERIT인 속성과 값이 undefined인 상속하는 속성은 incoming 객체에서 새 값을 가져옵니다. 값이 undefined인 상속하지 않는 속성은 기본값을 갖습니다. 다른 모든 속성 값은 수정되지 않은 상태로 유지됩니다.
매개 변수
incoming:flashx.textLayout.formats:ITabStopFormat — 값이 연결되는 인스턴스입니다.
|
관련 API 요소
concatInheritOnly | () | 메서드 |
public function concatInheritOnly(incoming:flashx.textLayout.formats:ITabStopFormat):void| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
들어오는 ITabStopFormat 인스턴스의 속성 값을 이 TabStopFormat 객체의 값과 연결합니다. 이 (받는) TabStopFormat 객체에서 값이 FormatValue.INHERIT인 속성과 값이 undefined인 상속하는 속성은 incoming 객체에서 새 값을 가져옵니다. 다른 모든 속성 값은 수정되지 않은 상태로 유지됩니다.
매개 변수
incoming:flashx.textLayout.formats:ITabStopFormat — 값이 연결되는 인스턴스입니다.
|
관련 API 요소
copy | () | 메서드 |
public function copy(values:flashx.textLayout.formats:ITabStopFormat):void| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
TabStopFormat 설정을 ITabStopFormat 인스턴스 값에서 이 TabStopFormat 객체로 복사합니다. 값이 null인 경우 이 TabStopFormat 객체는 모든 속성에 대해 정의되지 않은 값으로 초기화됩니다.
매개 변수
values:flashx.textLayout.formats:ITabStopFormat — 값을 복사하는 선택적 인스턴스입니다.
|
getStyle | () | 메서드 |
isEqual | () | 메서드 |
public static function isEqual(p1:flashx.textLayout.formats:ITabStopFormat, p2:flashx.textLayout.formats:ITabStopFormat):Boolean| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
ITabStopFormat 인스턴스 p1의 속성을 ITabStopFormat 인스턴스 p2의 속성과 비교하여 모든 속성이 일치하면 true를 반환합니다.
매개 변수
p1:flashx.textLayout.formats:ITabStopFormat — p2와 비교할 인스턴스입니다.
| |
p2:flashx.textLayout.formats:ITabStopFormat — p1과 비교할 인스턴스입니다.
|
Boolean — 모든 속성이 일치하는 경우 true이고 그렇지 않으면 false입니다.
|
removeClashing | () | 메서드 |
public function removeClashing(incoming:flashx.textLayout.formats:ITabStopFormat):void| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
TabStopFormat 객체의 속성이 들어오는 ITabStopFormat 인스턴스의 속성과 일치하지 않는 경우 이 TabStopFormat 객체의 속성을 undefined로 설정합니다.
매개 변수
incoming:flashx.textLayout.formats:ITabStopFormat — 이 TabStopFormat 객체의 속성 값에 대해 비교할 인스턴스입니다.
|
removeMatching | () | 메서드 |
public function removeMatching(incoming:flashx.textLayout.formats:ITabStopFormat):void| 언어 버전: | ActionScript 3.0 |
| 런타임 버전: | Flash Player 10, AIR 1.5 |
TabStopFormat 객체의 속성이 들어오는 ITabStopFormat 인스턴스의 속성과 일치하는 경우 이 TabStopFormat 객체의 속성을 undefined로 설정합니다.
매개 변수
incoming:flashx.textLayout.formats:ITabStopFormat — 이 TabStopFormat 객체의 속성 값에 대해 비교할 인스턴스입니다.
|
setStyle | () | 메서드 |
package flashx.textLayout.formats.examples {
import flash.display.Sprite;
import flash.text.engine.TabAlignment;
import flashx.textLayout.container.ContainerController;
import flashx.textLayout.compose.StandardFlowComposer;
import flashx.textLayout.elements.ParagraphElement;
import flashx.textLayout.elements.SpanElement;
import flashx.textLayout.elements.TextFlow;
import flashx.textLayout.formats.TabStopFormat;
import flashx.textLayout.formats.TextLayoutFormat;
public class TabStopFormat_example extends Sprite
{
public function TabStopFormat_example()
{
var firstContainer:Sprite = new Sprite();
this.stage.addChild( firstContainer );
var textFlow:TextFlow = new TextFlow();
var format:TextLayoutFormat = new TextLayoutFormat();
var tabStop1:TabStopFormat = new TabStopFormat();
var tabStop2:TabStopFormat = new TabStopFormat();
var tabStop3:TabStopFormat = new TabStopFormat();
tabStop1.alignment = flash.text.engine.TabAlignment.START;
tabStop1.position = 50;
tabStop2.alignment = flash.text.engine.TabAlignment.CENTER;
tabStop2.position = 150;
tabStop3.alignment = flash.text.engine.TabAlignment.END;
tabStop3.position = 250;
format.tabStops = new Array(tabStop1,tabStop2,tabStop3);
textFlow.hostFormat = format;
var p:ParagraphElement = new ParagraphElement();
var span:SpanElement = new SpanElement();
span.text = "1\txxx\txxx\txxx\n2\tyyyyyy\tyyyyyy<\tyyyyyy\n3\tzz\tzz\tzz";
p.addChild(span);
textFlow.addChild(p);
textFlow.flowComposer = new StandardFlowComposer();
var firstController:ContainerController = new ContainerController(firstContainer, 300, 100 );
textFlow.flowComposer.addController(firstController);
textFlow.flowComposer.updateAllControllers();
}
}
}
Tue Jun 12 2018, 03:17 PM Z
상속되는 공용 속성 숨기기
상속되는 공용 속성 표시