Back to Devexpress

DataViewBase.PrintRowIndentStyle Property

wpf-devexpress-dot-xpf-dot-grid-dot-dataviewbase-a9bdc35c.md

latest2.5 KB
Original Source

DataViewBase.PrintRowIndentStyle Property

Gets or sets the style applied to the printed row indents. This is a dependency property.

Namespace : DevExpress.Xpf.Grid

Assembly : DevExpress.Xpf.Grid.v25.2.Core.dll

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public Style PrintRowIndentStyle { get; set; }
vb
Public Property PrintRowIndentStyle As Style

Property Value

TypeDescription
Style

The style applied to the printed row indents.

|

Remarks

Target Type : Control

Example

xaml
<Window xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
        xmlns:dxgt="http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys"
        xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
    <Window.Resources>
        <Style x:Key="customPrintRowIndentStyle" 
               BasedOn="{StaticResource {dxgt:TreeListViewThemeKey ResourceKey=DefaultPrintRowIndentStyle}}" 
               TargetType="Control">
            <Setter Property="Foreground" Value="Red" />
        </Style>
    </Window.Resources>

    <dxg:GridControl ...>
    ...
        <dxg:GridControl.View>
            <dxg:TreeListView PrintRowIndentStyle="{StaticResource customPrintRowIndentStyle}"
                              .../>
        </dxg:GridControl.View>
    </dxg:GridControl>
</Window>

Refer to the following topics for more information on how to print data:

See Also

Appearance Customization

DataViewBase Class

DataViewBase Members

DevExpress.Xpf.Grid Namespace