wpf-devexpress-dot-xpf-dot-diagram-dot-diagramitem-23ca14b2.md
Gets or sets the width of the diagram item outline. This is a dependency property.
Namespace : DevExpress.Xpf.Diagram
Assembly : DevExpress.Xpf.Diagram.v25.2.dll
NuGet Package : DevExpress.Wpf.Diagram
[Browsable(false)]
public double StrokeThickness { get; set; }
<Browsable(False)>
Public Property StrokeThickness As Double
| Type | Description |
|---|---|
| Double |
A Double value that specifies the width, in pixels, of the diagram item outline.
|
The following code snippets (auto-collected from DevExpress Examples) contain references to the StrokeThickness property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
</dxdiag:DiagramImage>
<dxdiag:DiagramShape Anchors="Top, Right" Angle="0" CanSnapToThisItem="False" CanResize="False" CanEdit="False" CanCopyWithoutParent="False" CanMove="False" CanSnapToOtherItems="False" CanSelect="False" CanRotate="False" CanCopy="False" FontSize="18.6666660308838" Height="20" Position="179,129" StrokeThickness="0" ThemeStyleId="ShapeId.Moderate5" TextAlignment="Left" VerticalContentAlignment="Center" Width="129">
<dxdiag:DiagramShape.Bindings>
<dxdiag:DiagramContainer Anchors="Left, Top" Background="#FFCEE1F2" CanCopyWithoutParent="True" ConnectionPoints="0.5,0 1,0.5 0.5,1 0,0.5" CanAddItems="False" DragMode="ByAnyPoint" Height="78" ItemsCanChangeParent="False" ItemsCanAttachConnectorEndPoint="False" ItemsCanAttachConnectorBeginPoint="False" ItemsCanSelect="False" ItemsCanEdit="False" ItemsCanCopyWithoutParent="False" ItemsCanMove="False" ItemsCanRotate="False" ItemsCanSnapToOtherItems="False" ItemsCanDeleteWithoutParent="False" ItemsCanSnapToThisItem="False" ItemsCanResize="False" Position="25,150" StrokeId="Black" Shape="StandardContainers.Alternating" ShowHeader="False" StrokeDashArray="5 3" ThemeStyleId="ShapeId.Focused1" TemplateName="ClassShape" Width="200">
<dxdiag:DiagramShape Anchors="Left, Top" Angle="0" Background="Transparent" CanAttachConnectorBeginPoint="False" CanResize="False" CanEdit="False" CanCopyWithoutParent="False" CanChangeParent="False" CanMove="False" CanAttachConnectorEndPoint="False" CanSelect="False" CanDeleteWithoutParent="False" CanRotate="False" ForegroundId="Black" FontWeight="Bold" FontFamily="Arial" Height="25" Position="11,10" StrokeThickness="0" ThemeStyleId="Variant2" TextAlignment="Left" Width="176">
<dxdiag:DiagramShape.Bindings>
wpf-diagram-create-custom-shapes-based-on-diagram-containers/CS/WpfApp13/MainWindow.xaml.cs#L31
var container = new DiagramContainer();
container.StrokeThickness = 0;
container.Background = Brushes.Transparent;
wpf-diagram-create-custom-shapes-based-on-diagram-containers/VB/WpfApp13/MainWindow.xaml.vb#L26
Dim container = New DiagramContainer()
container.StrokeThickness = 0
container.Background = Brushes.Transparent
wpf-diagram-proportionally-resize-shapes-within-container/VB/WpfApp13/MainWindow.xaml.vb#L51
Dim container = New CustomDiagramContainer() With {.Width = 200, .Height = 200, .Position = New Point(100, 100), .CanAddItems = False, .ItemsCanChangeParent = False, .ItemsCanCopyWithoutParent = False, .ItemsCanDeleteWithoutParent = False, .ItemsCanAttachConnectorBeginPoint = False, .ItemsCanAttachConnectorEndPoint = False}
container.StrokeThickness = 0
container.Background = Brushes.Transparent
wpf-diagram-create-rotatable-containers-with-shapes/VB/WpfApp13/MainWindow.xaml.vb#L59
Dim container = New CustomDiagramContainer() With {.Width = 200, .Height = 200, .Position = New Point(100, 100), .CanAddItems = False, .ItemsCanChangeParent = False, .ItemsCanCopyWithoutParent = False, .ItemsCanDeleteWithoutParent = False, .ItemsCanAttachConnectorBeginPoint = False, .ItemsCanAttachConnectorEndPoint = False}
container.StrokeThickness = 0
container.Background = Brushes.Transparent
See Also