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


combit.ListLabel24.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.

Syntax
'Declaration
 
Public Sub GetFromParent() 
public void GetFromParent()
public:
void GetFromParent(); 
Example
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
    proj.GetFromParent();

    // 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'";

}
Requirements

Platforms: Windows Vista - Windows 10 Version 1809, Windows Server 2008 - 2016

See Also

Reference

ProjectBase Class
ProjectBase Members