Spread Windows Forms 12.0 Product Documentation
Inset Property (CompoundBorder)
Example 


FarPoint.Win Assembly > FarPoint.Win Namespace > CompoundBorder Class : Inset Property
Gets the insets of the border for a compound border.
Syntax
'Declaration
 
Public ReadOnly Property Inset As Inset
'Usage
 
Dim instance As CompoundBorder
Dim value As Inset
 
value = instance.Inset
public Inset Inset {get;}

Property Value

Inset object containing the margin (inset) dimensions
Remarks

This property is available at run time only.

Example
This example returns the margin (inset) for the border.
FarPoint.Win.ComplexBorderSide side = new FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed);

FarPoint.Win.ComplexBorderSide side1 = new FarPoint.Win.ComplexBorderSide(); 
FarPoint.Win.ComplexBorder lb = new FarPoint.Win.ComplexBorder(side); 
FarPoint.Win.ComplexBorder tb = new FarPoint.Win.ComplexBorder(side1); 
FarPoint.Win.CompoundBorder cb = new FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red);
FarPoint.Win.Inset inset = cb.Inset;
MessageBox.Show("The right inset for the border is " + inset.Right.ToString() + ".");
Dim side As New FarPoint.Win.ComplexBorderSide(FarPoint.Win.ComplexBorderSideStyle.MediumDashed)
Dim side1 As New FarPoint.Win.ComplexBorderSide
Dim lb As New FarPoint.Win.ComplexBorder(side)
Dim tb As New FarPoint.Win.ComplexBorder(side1)
Dim cb As New FarPoint.Win.CompoundBorder(lb, tb, 3, Color.Red)
Dim inset As FarPoint.Win.Inset = cb.Inset
MessageBox.Show("The right inset for the border is " + inset.Right.ToString() + ".")
See Also

Reference

CompoundBorder Class
CompoundBorder Members