IWpfTextView 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表 WPF 平臺的 Visual Studio ITextView 。
public interface class IWpfTextView : Microsoft::VisualStudio::Text::Editor::ITextView, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface class IWpfTextView : Microsoft::VisualStudio::Text::Editor::ITextView, Microsoft::VisualStudio::Utilities::IPropertyOwner
__interface IWpfTextView : Microsoft::VisualStudio::Text::Editor::ITextView, Microsoft::VisualStudio::Utilities::IPropertyOwner
public interface IWpfTextView : Microsoft.VisualStudio.Text.Editor.ITextView, Microsoft.VisualStudio.Utilities.IPropertyOwner
type IWpfTextView = interface
interface ITextView
interface IPropertyOwner
Public Interface IWpfTextView
Implements IPropertyOwner, ITextView
- 實作
備註
如需此介面的詳細資訊,以及其與有何不同ITextView,請參閱內部 編輯器 中的。
屬性
| Background |
取得或設定視覺專案的背景。 |
| BufferGraph |
IBufferGraph取得 ,其中包含參與這個檢視的來源緩衝區集。 (繼承來源 ITextView) |
| Caret |
取得插入號專案。 (繼承來源 ITextView) |
| FormattedLineSource |
取得檢視所使用的文字格式器。 |
| HasAggregateFocus |
判斷檢視或其任何裝飾是否具有焦點。 (繼承來源 ITextView) |
| InLayout |
判斷檢視是否正在配置中。 (繼承來源 ITextView) |
| IsClosed |
判斷這個文字檢視是否已關閉。 (繼承來源 ITextView) |
| IsMouseOverViewOrAdornments |
判斷滑鼠是否位於檢視上方或其任何裝飾。 (繼承來源 ITextView) |
| LineHeight |
取得檢視中文字行的名稱高度。 (繼承來源 ITextView) |
| LineTransformSource |
取得檢視所使用的線條轉換器。 |
| MaxTextRightCoordinate |
取得最長線條的右座標,不論該線條目前是否可見,都是以邏輯圖元表示。 (繼承來源 ITextView) |
| Options |
取得這個文字檢視的選項。 (繼承來源 ITextView) |
| Properties |
由屬性擁有者控制的屬性集合。 (繼承來源 IPropertyOwner) |
| ProvisionalTextHighlight |
取得文字醒目提示所涵蓋的文字範圍。 (繼承來源 ITextView) |
| Roles |
這個檢視所扮演的角色。 角色會部分決定針對檢視具現化的擴充功能。 (繼承來源 ITextView) |
| Selection |
取得選取專案。 (繼承來源 ITextView) |
| TextBuffer |
取得在此 ITextBuffer 檢視中轉譯其文字的 。 (繼承來源 ITextView) |
| TextDataModel |
ITextDataModel取得這個文字檢視的 。 (繼承來源 ITextView) |
| TextSnapshot |
ITextSnapshot取得目前在檢視中呈現文字的 。 (繼承來源 ITextView) |
| TextViewLines |
取得文字檢視行做為 IWpfTextViewLineCollection。 |
| TextViewModel |
ITextViewModel取得這個文字檢視的 。 (繼承來源 ITextView) |
| ViewportBottom |
取得檢視區下邊緣在文字轉譯座標系統中的位置。 (繼承來源 ITextView) |
| ViewportHeight |
取得邏輯圖元中可見內容視窗的高度。 (繼承來源 ITextView) |
| ViewportLeft |
取得或設定檢視區左邊緣在文字轉譯座標系統中的位置。 (繼承來源 ITextView) |
| ViewportRight |
取得檢視區右邊緣在文字轉譯座標系統中的位置。 (繼承來源 ITextView) |
| ViewportTop |
取得檢視區上邊緣在文字轉譯座標系統中的位置。 (繼承來源 ITextView) |
| ViewportWidth |
取得邏輯圖元中可見內容視窗的寬度。 (繼承來源 ITextView) |
| ViewScroller |
取得協助程式,提供各種方法來捲動或操作檢視。 (繼承來源 ITextView) |
| VisualElement |
取得呈現檢視的 FrameworkElement。 |
| VisualSnapshot |
ITextSnapshot取得正在轉譯之視覺緩衝區的 。 (繼承來源 ITextView) |
| ZoomLevel |
取得或設定介於 20% 到 400% 之間的 縮放層級IWpfTextView |
方法
| Close() |
關閉文字檢視及其檢視。 (繼承來源 ITextView) |
| DisplayTextLineContainingBufferPosition(SnapshotPoint, Double, ViewRelativePosition, Nullable<Double>, Nullable<Double>) |
格式化並顯示文字緩衝區的內容, ITextViewLine 讓包含 |
| DisplayTextLineContainingBufferPosition(SnapshotPoint, Double, ViewRelativePosition) |
格式化並顯示文字緩衝區的內容, ITextViewLine 讓包含 |
| GetAdornmentLayer(String) |
取得名為 IAdornmentLayer的 。 |
| GetSpaceReservationManager(String) |
取得名為 ISpaceReservationManager的 。 |
| GetTextElementSpan(SnapshotPoint) |
取得構成文字專案的 文字 SnapshotSpan 的 , (指定 SnapshotPoint處的單一視覺表示法) 。 (繼承來源 ITextView) |
| GetTextViewLineContainingBufferPosition(SnapshotPoint) |
IWpfTextViewLine取得包含指定的文字緩衝區位置的 。 |
| QueueSpaceReservationStackRefresh() |
要求重新整理空間保留堆疊。 (繼承來源 ITextView) |
事件
| BackgroundBrushChanged |
發生於 設定 時 Background 。 |
| Closed |
會在關閉文字檢視之後立即發生。 (繼承來源 ITextView) |
| GotAggregateFocus |
發生於鍵盤焦點切換至檢視或其裝飾之一時。 (繼承來源 ITextView) |
| LayoutChanged |
每當檢視中顯示的文字變更時發生。 (繼承來源 ITextView) |
| LostAggregateFocus |
發生於鍵盤焦點離開檢視及其任何裝飾時。 (繼承來源 ITextView) |
| MouseHover |
發生於滑鼠停留在相同字元上方時。 (繼承來源 ITextView) |
| ViewportHeightChanged |
發生於檢視區的高度變更時。 (繼承來源 ITextView) |
| ViewportLeftChanged |
發生於檢視區左邊緣的位置變更時。 (例如,當檢視水平捲動) (繼承來源 ITextView) |
| ViewportWidthChanged |
發生於檢視區的寬度變更時。 (繼承來源 ITextView) |
| ZoomLevelChanged |
發生於 設定 時 ZoomLevel 。 |