[]
Represents an embedded object that is anchored to some text position.
public class AnchoredObject : Inline
Creates a new instance of AnchoredObject.
public AnchoredObject()
Creates a new instance of AnchoredObject.
public AnchoredObject(AnchoredObject source)
source
AnchoredObjectCreates a new instance of AnchoredObject.
public AnchoredObject(float width, float height, bool wrapWithText, HorizontalPosition horizontalPosition, VerticalPosition verticalPosition, float horizontalOffset, float verticalOffset)
width
floatheight
floatwrapWithText
boolhorizontalPosition
HorizontalPositionverticalPosition
VerticalPositionhorizontalOffset
floatverticalOffset
floatCreates a new instance of AnchoredObject.
public AnchoredObject(float width, float height, bool wrapWithText, HorizontalPosition horizontalPosition, VerticalPosition verticalPosition)
width
floatheight
floatwrapWithText
boolhorizontalPosition
HorizontalPositionverticalPosition
VerticalPositionCreates a new instance of AnchoredObject.
public AnchoredObject(float width, float height, bool wrapWithText)
width
floatheight
floatwrapWithText
boolGets or sets a value indicating if the object should be attached to the previous visible character (True) or to the next visible character (False).
The default is false.
public bool AttachToPreviousChar { get; set; }
Gets a rectangular area occupied by an embedded object, or 'null'.
public ObjectRect ContentObjectRect { get; }
Gets or sets the height of the AnchoredObject, in graphic units.
public float Height { get; set; }
Gets or sets the horizontal offset relative to the specified position, in graphic units.
public float HorizontalOffset { get; set; }
Gets or sets the horizontal position of the AnchoredObject.
The default is CharCenter.
public HorizontalPosition HorizontalPosition { get; set; }
Gets or sets a value indicating if the anchored object should not appear beyond the horizontal bounds specified by the MinLeft and MaxRight properties.
The default is false.
public bool KeepInHorizontalBounds { get; set; }
Gets or sets a value indicating if the anchored object should not appear beyond the vertical bounds specified by the MinTop and MaxBottom properties.
The default is false.
public bool KeepInVerticalBounds { get; set; }
Gets or sets the maximum Bottom value of the anchored object, in graphic units.
The assigned value is ignored unless the KeepInVerticalBounds property is set to true.
public float MaxBottom { get; set; }
Gets or sets the maximum Right value of the anchored object, in graphic units.
The assigned value is ignored unless the KeepInHorizontalBounds property is set to true.
public float MaxRight { get; set; }
Gets or sets the minimum Left value of the anchored object, in graphic units.
The assigned value is ignored unless the KeepInHorizontalBounds property is set to true.
public float MinLeft { get; set; }
Gets or sets the minimum Top value of the anchored object, in graphic units.
The assigned value is ignored unless the KeepInVerticalBounds property is set to true.
public float MinTop { get; set; }
Gets or sets the embedded object referenced by the AnchoredObject.
public object Object { get; set; }
Gets a rectangular area which is excluded from text layout, or 'null'.
public ObjectRect ObjectRect { get; }
Gets or sets the vertical offset relative to the specified position, in graphic units.
public float VerticalOffset { get; set; }
Gets or sets the vertical position of the AnchoredObject.
The default is CharCenter.
public VerticalPosition VerticalPosition { get; set; }
Gets or sets the width of the AnchoredObject, in graphic units.
public float Width { get; set; }
Gets or sets a value specifying how text wraps around the sides of an anchored object.
The default is Both.
public WrapSide WrapSide { get; set; }
Gets or sets a value indicating if the anchored object should affect text layout.
The default is false.
public bool WrapWithText { get; set; }
Gets the number of UTF-16 characters.
public override int GetCharCount()
Gets the string of UTF-16 characters.
public override string GetChars()