Skip to main content

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.v23.2.Core.dll

NuGet Package: DevExpress.Wpf.Grid.Core

Declaration

public Style PrintRowIndentStyle { get; set; }

Property Value

Type Description
Style

The style applied to the printed row indents.

Remarks

Target Type: Control

Example

<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