Skip to main content
All docs
V25.1
  • StripLineBase.PrintControlStyle Property

    Gets or sets the style applied to strip lines in the printed GanttControl. This is a dependency property.

    Namespace: DevExpress.Xpf.Gantt

    Assembly: DevExpress.Xpf.Gantt.v25.1.dll

    NuGet Package: DevExpress.Wpf.Gantt

    Declaration

    public Style PrintControlStyle { get; set; }

    Property Value

    Type Description
    Style

    The style applied to strip lines in the printed GanttControl.

    Remarks

    Target Type: StripLineControl

    Example

    <dxgn:GanttControl ItemsSource="{Binding Tasks}">
    ...
        <dxgn:GanttControl.View>
            <dxgn:GanttView ...>
                <dxgn:GanttView.StripLines>
                    <dxgn:StripLine
                        Background="#3FF5BD53"
                        BorderBrush="#FFF5BD53"
                        BorderThickness="1,0"
                        Duration="1.0:0:0"
                        StartDate="08/28/2020">
                        <!-- Change printed strip line appearance -->
                        <dxgn:StripLine.PrintControlStyle>
                            <Style TargetType="{x:Type dxgn:StripLineControl}">
                                <Setter Property="Background" Value="Aqua"/>
                                <Setter Property="BorderBrush" Value="DarkBlue"/>
                            </Style>
                        </dxgn:StripLine.PrintControlStyle>
                    </dxgn:StripLine>
                </dxgn:GanttView.StripLines>
            </dxgn:GanttView>
        </dxgn:GanttControl.View>
    </dxgn:GanttControl>
    

    Refer to the Print and Export topic for more information on how to customize the printed document.

    See Also