Add profile to profile view

Add profile to profile view

cdear1KP358
Participant Participant
384 Views
2 Replies
Message 1 of 3

Add profile to profile view

cdear1KP358
Participant
Participant

Somewhat of a newbie here. Using visual studio. Need to understand how to add a profile to a profile view and/or control the view of multiple profiles in a profile view.

 

Thanks, Tim

0 Likes
Accepted solutions (1)
385 Views
2 Replies
Replies (2)
Message 2 of 3

Jeff_M
Consultant
Consultant
Accepted solution

When you create a Profile for an alignment it will automatically be added to any current or future ProfileView objects for that alignment. To Turn off the display of a Profile in a specific ProfileView you access the ProfileView.GraphOverides, locate the Profile in the overrides and turn off the Draw property.

 

                foreach (ProfileOverride pvo in profview.GraphOverrides)
                {
                    if (pvo.ProfileName == "DoNotShow")
                        pvo.Draw = false;
                }
Jeff_M, also a frequent Swamper
EESignature
0 Likes
Message 3 of 3

cdear1KP358
Participant
Participant

Thanks so much. That will work great.

0 Likes