Background mask Mtext in VB.NET

Background mask Mtext in VB.NET

Sgear
Advocate Advocate
1,987 Views
3 Replies
Message 1 of 4

Background mask Mtext in VB.NET

Sgear
Advocate
Advocate

Hi

 

to Background mask Mtext in VB.NET

how can I use "Fill color" Use drawing background color

0 Likes
Accepted solutions (1)
1,988 Views
3 Replies
Replies (3)
Message 2 of 4

_gile
Consultant
Consultant
Accepted solution

Hi,

 

you have to set the UseBackgroundColor, BackgroundFill and BackgroundFillColor properties.

 

mtext.UseBackgroundColor = false;
mtext.BackgroundFill = true;
mtext.BackgroundFillColor = Color.FromColorIndex(ColorMethod.ByAci, 1);


Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 4

Sgear
Advocate
Advocate

Hi

 

I try this

 

the background get read from the Layer not from the drawing

 

 

                            mtx.BackgroundFill = True
                            mtx.BackgroundFillColor = Color.FromColorIndex(ColorMethod.ByAci, 1)
                            mtx.UseBackgroundColor = False
0 Likes
Message 4 of 4

Sgear
Advocate
Advocate

Hi

 

I change this to True

 

UseBackgroundColor = True

 

Case Closed 🙂

0 Likes