| C1.Xaml.RichTextBox アセンブリ > C1.Xaml.RichTextBox 名前空間 : C1RichTextViewManager クラス |

'宣言 Public NotInheritable Class C1RichTextViewManager
public sealed class C1RichTextViewManager
リッチテキストを表示するには、C1RichTextViewManager を C1RichTextPresenter と共に使用する必要があります。Presenters コレクションには、実際にコンテンツを表示する C1RichTextPresenter に C1RichTextViewManager を接続するための C1RichTextPresenterSource が含まれます。
Presenters コレクションには常に少なくとも1つの要素が含まれ、新しいプレゼンタが必要になると拡張または縮小します。これにより、新しいプレゼンタを作成するために必要に応じて Windows.UI.Xaml.Controls.ItemsControl を使用できます。次に、Document を表示する ItemsControl のサンプルを示します。
<Grid> <Grid.Resources> <c1rtb:C1RichTextViewManager x:Key="viewManager" Document="{StaticResource someDocument}"/> </Grid.Resources> <ItemsControl ItemsSource="{Binding Presenters, Source={StaticResource viewManager}}"> <ItemsControl.ItemTemplate> <DataTemplate> <Border Margin="10" BorderThickness="2" BorderBrush="Red" Padding="2" Height="102"> <c1rtb:C1RichTextPresenter Source="{Binding}"/> </Border> </DataTemplate> </ItemsControl.ItemTemplate> </ItemsControl> </Grid>System.Object
C1.Xaml.RichTextBox.C1RichTextViewManager
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2