new CTextStyle()
            openlayers/MapDocument.js, line 9513
        
        
    設定文字樣式
Members
- 
    
Align
 - 
    
    
對齊方式
Properties:
Name Type Description Alignstring 對齊方式,可能值:'left', 'right', 'center', 'end' 或 'start',預設'center'。
 - 
    
Baseline
 - 
    
    
基線位置
Properties:
Name Type Description Baselinestring 文字內容,可能值:'bottom', 'top', 'middle', 'alphabetic', 'ideographic' 或 'hanging',預設'middle'。
 - 
    
ContentStyle
 - 
    
    
文字處理模式
Properties:
Name Type Description ContentStylestring 文字處理模式,可能值:'hide', 'normal', 'shorten' 或 'wrap',預設'normal'。
 - 
    
FillColor
 - 
    
    
文字顏色
Properties:
Name Type Description FillColorstring 文字顏色,預設'black'。
 - 
    
Font
 - 
    
    
文字樣式
Properties:
Name Type Description Fontstring 文字樣式,可能值:'sans-serif', 'Arial', 'Courier New', 'Quattrocento Sans', 'Verdana' ... 等等,預設'sans-serif'。
 - 
    
OffsetX
 - 
    
    
水平平移距離
Properties:
Name Type Description OffsetXnumber 水平平移距離,單位pixel,正值向右,預設0。
 - 
    
OffsetY
 - 
    
    
垂直移動距離
Properties:
Name Type Description _OffsetYnumber 垂直移動距離,單位pixel,正值向下,預設0。
 - 
    
Rotation
 - 
    
    
文字旋轉角度
Properties:
Name Type Description Rotationnumber 文字旋轉角度,單位弧度(正數向順時針轉),預設0。
 - 
    
Size
 - 
    
    
文字大小
Properties:
Name Type Description Sizenumber 文字大小,單位pixel,預設10。
 - 
    
StrokeColor
 - 
    
    
文字外框顏色
Properties:
Name Type Description StrokeColorstring 文字外框顏色,預設'black'。
 - 
    
StrokeWidth
 - 
    
    
文字輪廓粗細
Properties:
Name Type Description StrokeWidthnumber 文字輪廓粗細,預設0。
 - 
    
Text
 - 
    
    
文字內容
Properties:
Name Type Description Textstring 文字內容
 - 
    
Weight
 - 
    
    
字體粗細
Properties:
Name Type Description Weightstring 字體粗細,可能值'normal'或'bold',預設'normal'。
 
Methods
- 
    
Clone()
openlayers/MapDocument.js, line 9740 - 
    
    
    
複製文字樣式屬性
Example
var textstyle = TextStyle.Clone();