combit List & Label 25 - .NET Online Web Help
GetFromParent Method

combit.ListLabel25.Dom Namespace > ProjectBase Class : GetFromParent Method

Allows to directly modify the project currently in use, e.g. after starting a print job. If a project is already opened, it will be closed. In databound mode this method has to be called in the context of the DefinePrintOptions Event (see below), as that is the exact point where the print project is opened and initialized.

Public Sub GetFromParent() 
public void GetFromParent()
void GetFromParent(); 
private void LL_DefinePrintOptions(object sender, EventArgs e)
    // Create new DOM project of type LlProject.List
    ProjectList proj = new ProjectList(LL);

    // No proj.Open() is required. Instead the project of the component is used

    // Get Text object "Headline"
    ObjectText text = (ObjectText)proj.Objects["Headline"];
    // Create new paragraph
    Paragraph paragraph = text.Paragraphs.AddNew();
    paragraph.Font.SetFont(new Font("Courier New", 12));
    paragraph.Contents = "'Added text'";


Platforms: Windows 7 SP1 - Windows 10 Version 1909, Windows Server 2008 R2 - 2019

See Also


ProjectBase Class
ProjectBase Members