Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting the Font Properties of WPF controls
#1
Not Solved
Hi,

How to get the font properties ( Color, Size, Bold , Italic ... ) of a text inside a WpfEdit control.

What I am using is :" WpfWindow("TruBioPC").WpfEdit("NotesTextarea").Object.FontSize
which returns the font size.

But I need to get the other properties.


Code:
WpfWindow("TruBio PC").WpfEdit("NotesTextarea").Object.Foreground
WpfWindow("TruBio PC").WpfEdit("NotesTextarea").Object.FontStyle
WpfWindow("TruBio PC").WpfEdit("NotesTextarea").Object.FontFamily
WpfWindow("TruBio PC").WpfEdit("NotesTextarea").Object.FontWeight

All of these return empty values.

Any help appreciated...

Thanks in advance
Reply


Messages In This Thread
Getting the Font Properties of WPF controls - by sreejithmahesan - 05-26-2011, 01:05 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  no action on click for particular wpf button jlavrecka 1 1,439 05-21-2020, 11:33 PM
Last Post: jlavrecka
  Issue in QTP WPF vimal_selvam 5 14,279 06-26-2018, 05:40 PM
Last Post: rateebhatt
  UFT 14.01 - identifying wpf objects. but not performing action. chinmoyee 1 2,504 11-15-2017, 03:42 PM
Last Post: Ankur
  [UFT] [WPF] Verify if the cell contains an image robertosalemi 0 1,902 10-25-2016, 06:57 PM
Last Post: robertosalemi
  [UFT] [WPF] DataGrid: get items of ControlTemplate robertosalemi 0 3,492 07-14-2016, 07:52 PM
Last Post: robertosalemi

Forum Jump:


Users browsing this thread: 1 Guest(s)