WindowsForms-docs/WindowsForms/xptaskbar/Padding.md

50 строки
2.1 KiB
Markdown
Исходник Постоянная ссылка Обычный вид История

2020-10-28 20:19:23 +03:00
---
layout: post
2021-05-03 17:55:40 +03:00
title: Padding in Windows Forms xptaskbar control | Syncfusion
description: Learn about Padding support in Syncfusion Windows Forms xptaskbar (XPTaskBar) control and more details.
2020-10-28 20:19:23 +03:00
platform: WindowsForms
control: XPTaskBar
documentation: ug
---
2021-05-03 17:55:40 +03:00
# Padding in Windows Forms xp taskbar (XPTaskBar)
2020-10-28 20:19:23 +03:00
## Padding settings for XPTaskBar
The interior spacing of the XPTaskBar control can be specified by setting the DockPadding property to integer values.
The horizontal and vertical padding can be specified using the [HorizontalPadding](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPTaskBar.html#Syncfusion_Windows_Forms_Tools_XPTaskBar_HorizontalPadding) and [VerticalPadding](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPTaskBar.html#Syncfusion_Windows_Forms_Tools_XPTaskBar_VerticalPadding) properties. The default value of the both is 'Zero'.
{% tabs %}
{% highlight C# %}
this.xpTaskBar1.DockPadding.All = 10;
this.xpTaskBar1.HorizontalPadding = 3;
this.xpTaskBar1.VerticalPadding = 3;
{% endhighlight %}
{% highlight VB %}
Me.xpTaskBar1.DockPadding.All = 10
Me.xpTaskBar1.HorizontalPadding = 3
Me.xpTaskBar1.VerticalPadding = 3
{% endhighlight %}
{% endtabs %}
![Padding settings for XPTaskBar](Overview_images/Overview_img113.jpeg)
### Padding settings for XPTaskBar box header
Padding provides spacing between the text of the header and it's borders. Horizontal and vertical padding can be set using the [PADX](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPTaskBarBox.html#Syncfusion_Windows_Forms_Tools_XPTaskBarBox_PADX) and [PADY](https://help.syncfusion.com/cr/windowsforms/Syncfusion.Windows.Forms.Tools.XPTaskBarBox.html#Syncfusion_Windows_Forms_Tools_XPTaskBarBox_PADY) properties.
{% tabs %}
{% highlight C# %}
this.xpTaskBarBox1.PADX = 7;
this.xpTaskBarBox1.PADY = 7;
{% endhighlight %}
{% highlight VB %}
Me.xpTaskBarBox1.PADX = 7
Me.xpTaskBarBox1.PADY = 7
{% endhighlight %}
{% endtabs %}
The following figure displays the XPTaskBar Box with padding settings.
![Padding settings for XPTaskBar box header](Overview_images/Overview_img114.jpeg)