Wrap(Int32, Int32, ReadOnlySpan, ReadOnlySpan) Method

Definition

Assembly Broadside.dll

Surrounds the operators first through last, such as a text object in a marked-content sequence (/P <</MCID 0>> BDC … EMC) or a group of paints in q … Q.

public void Wrap(int first, int last, ReadOnlySpan<byte> before, ReadOnlySpan<byte> after)

Parameters

first
Int32

The number of the first operator inside.

last
Int32

The number of the last operator inside; at least first.

before
ReadOnlySpan<Byte>

Content stream syntax written before the first operator; copied.

after
ReadOnlySpan<Byte>

Content stream syntax written after the last operator; copied.

Remarks

ISO 32000-2 §7.8.2; §14.6 (marked content), §8.4.2 (the state stack). Wraps that overlap without one containing the other produce content whose sequences do not nest; the caller keeps them nested.