GlyphRun 類別

定義

表示單一大小之單一字型單一字體、使用單一呈現樣式的一系列圖像 (Glyph)。

public ref class GlyphRun : System::ComponentModel::ISupportInitialize
public class GlyphRun : System.ComponentModel.ISupportInitialize
type GlyphRun = class
    interface DUCE.IResource
    interface ISupportInitialize
type GlyphRun = class
    interface ISupportInitialize
Public Class GlyphRun
Implements ISupportInitialize
繼承
GlyphRun
實作

備註

物件 GlyphRun 包含字型詳細資料,例如圖像索引和個別圖像位置。 此外,物件 GlyphRun 包含執行所產生的原始 Unicode 字碼指標、字元到字元緩衝區位移對應資訊,以及每一字元和每一字元旗標。

專案 Glyphs 代表 XAML 中的 輸出 GlyphRun 。 下列標記語法是用來描述 Glyphs 元素。

<!-- The example shows how to use a Glyphs object. -->
<Page
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  >

   <StackPanel Background="PowderBlue">

      <Glyphs
         FontUri             = "C:\WINDOWS\Fonts\TIMES.TTF"
         FontRenderingEmSize = "100"
         StyleSimulations    = "BoldSimulation"
         UnicodeString       = "Hello World!"
         Fill                = "Black"
         OriginX             = "100"
         OriginY             = "200"
      />

   </StackPanel>
</Page>

每個字元都會定義計量,以指定它與其他 Glyphs 的對齊方式。 下圖定義兩個不同字符字元的各種印刷品質。

圖像度量
兩個不同圖像字元的各種印刷樣式品質

建構函式

GlyphRun()
已淘汰.

初始化 GlyphRun 類別的新執行個體。

GlyphRun(GlyphTypeface, Int32, Boolean, Double, IList<UInt16>, Point, IList<Double>, IList<Point>, IList<Char>, String, IList<UInt16>, IList<Boolean>, XmlLanguage)
已淘汰.

指定 GlyphRun 類別的屬性,藉以初始化該類別的新執行個體。

GlyphRun(GlyphTypeface, Int32, Boolean, Double, Single, IList<UInt16>, Point, IList<Double>, IList<Point>, IList<Char>, String, IList<UInt16>, IList<Boolean>, XmlLanguage)

指定 GlyphRun 類別的屬性,藉以初始化該類別的新執行個體。

GlyphRun(Single)

初始化 GlyphRun 類別的新執行個體。

屬性

AdvanceWidths

取得或設定 Double 值的清單,代表對應到字符索引的遞增寬度。

BaselineOrigin

取得或設定 GlyphRun 的基準原點。

BidiLevel

取得或設定 GlyphRun 的雙向 (Bidirectional) 巢狀層次。

CaretStops

取得或設定 Boolean 值的清單,判斷在代表 GlyphRun 的 Unicode 中針對每個 UTF16 字碼指標是否會有插入號停駐點。

Characters

取得或設定 UTF16 字碼指標的清單,代表 GlyphRun 的 Unicode 內容。

ClusterMap

取得或設定 UInt16 值的清單,其會將 GlyphRun 中的字元對應至字符索引。

DeviceFontName

取得或設定已最佳化 GlyphRun 的特定裝置字型。

FontRenderingEmSize

取得或設定用於呈現 GlyphRun 的 em 大小。

GlyphIndices

取得或設定 UInt16 值的陣列,這些值表示呈現實體字型 (Physical Font) 中的圖像索引。

GlyphOffsets

取得或設定 Point 值的陣列,代表 GlyphRun 中字符的位移。

GlyphTypeface

取得或設定 GlyphTypefaceGlyphRun

IsHitTestable

取得值,這個值表示 GlyphRun 中是否存在有效的插入號字元點擊。

IsSideways

取得或設定值,表示是否旋轉圖像。

Language

取得或設定 XmlLanguageGlyphRun

PixelsPerDip

取得或設定應轉譯文字的 PixelsPerDip。

方法

BuildGeometry()

擷取 GeometryGlyphRun

ComputeAlignmentBox()

擷取 GlyphRun 的對齊方塊。

ComputeInkBoundingBox()

擷取 GlyphRun 的筆墨週框方塊。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetCaretCharacterHitFromDistance(Double, Boolean)

擷取 CharacterHit 值,這個值表示 GlyphRun 之插入號 (Caret) 的字元點擊。

GetDistanceFromCaretCharacterHit(CharacterHit)

擷取自 GlyphRun 的前端邊緣到插入號停駐點 (包含指定的字元點擊) 之前端邊緣或尾端邊緣的位移。

GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetNextCaretCharacterHit(CharacterHit)

擷取 GlyphRun 中邏輯方向的下一個有效插入號字元點擊。

GetPreviousCaretCharacterHit(CharacterHit)

擷取 GlyphRun 中邏輯方向的前一個有效插入號字元點擊。

GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

明確介面實作

ISupportInitialize.BeginInit()

如需這個成員的說明,請參閱 BeginInit()

ISupportInitialize.EndInit()

如需這個成員的說明,請參閱 EndInit()

適用於