create_portion method

create_portion

Creates an empty text portion.

Returns

Portion.

def create_portion(self):
    ...

create_portion

Creates a text portion from specified string.

Returns

Portion.

def create_portion(self, str):
    ...
ParameterTypeDescription
strstrString.

create_portion

Creates a portion with the using of a specified portion data.

Returns

Portion.

def create_portion(self, portion):
    ...
ParameterTypeDescription
portionIPortionA portion to use.

See Also