GrapeCity SPREAD for WPF 2.0J
SelectionForegroundUnfocused プロパティ (GcSpreadGrid)

コントロールにフォーカスがないときの選択領域の前景ブラシを取得または設定します。
構文
'Declaration
 
Public Property SelectionForegroundUnfocused As Brush
public Brush SelectionForegroundUnfocused {get; set;}

プロパティ値

コントロールにフォーカスがないときの選択領域の文字色を示すブラシ。
次のサンプルはSelectionForegroundUnfocusedプロパティの使用方法を説明します。
<sg:GcSpreadGrid Name="gcSpreadGrid1" ItemsSource="{StaticResource mySource}" 
           SelectionPolicy="Range" SelectionUnit="Cell" SelectionBackground="Red" 
           SelectionForeground="Blue" SelectionBackgroundUnfocused="Brown" SelectionForegroundUnfocused="Gray"
           HeaderSelectionOptions="ColumnHeader|RowHeader">
    <sg:GcSpreadGrid.SelectionBorder>
        <sg:BorderLine Color="Black" Style="MediumDashDot"/>
    </sg:GcSpreadGrid.SelectionBorder>
</sg:GcSpreadGrid>
<ComboBox ItemsSource="{Binding SelectedItems, ElementName=gcSpreadGrid1}" 
          SelectedItem="{Binding SelectedItem, ElementName=gcSpreadGrid1}"
          DisplayMemberPath="Name"/>
参照

GcSpreadGrid クラス
GcSpreadGrid メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.