Class MapsAnnotationBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
MapsAnnotationBuilder
Namespace: Syncfusion.EJ2.Maps
Assembly: Syncfusion.EJ2.dll
Syntax
public class MapsAnnotationBuilder : ControlBuilder
Constructors
MapsAnnotationBuilder()
Declaration
public MapsAnnotationBuilder()
MapsAnnotationBuilder(List<MapsAnnotation>)
Declaration
public MapsAnnotationBuilder(List<MapsAnnotation> collection)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<MapsAnnotation> | collection |
Methods
Add()
Declaration
public void Add()
Content(String)
Gets or sets the content for the annotation in maps.
Declaration
public MapsAnnotationBuilder Content(string content)
Parameters
Type | Name | Description |
---|---|---|
System.String | content |
Returns
HorizontalAlignment(AnnotationAlignment)
Gets or sets the type of the placement when the annotation is to be aligned horizontally.
Declaration
public MapsAnnotationBuilder HorizontalAlignment(AnnotationAlignment horizontalAlignment)
Parameters
Type | Name | Description |
---|---|---|
AnnotationAlignment | horizontalAlignment |
Returns
VerticalAlignment(AnnotationAlignment)
Gets or sets the type of the placement when the annotation is to be aligned vertically.
Declaration
public MapsAnnotationBuilder VerticalAlignment(AnnotationAlignment verticalAlignment)
Parameters
Type | Name | Description |
---|---|---|
AnnotationAlignment | verticalAlignment |
Returns
X(String)
Gets or sets the x position of the annotation in pixel or percentage format.
Declaration
public MapsAnnotationBuilder X(string x)
Parameters
Type | Name | Description |
---|---|---|
System.String | x |
Returns
Y(String)
Gets or sets the y position of the annotation in pixel or percentage format.
Declaration
public MapsAnnotationBuilder Y(string y)
Parameters
Type | Name | Description |
---|---|---|
System.String | y |
Returns
ZIndex(String)
Gets or sets the z-index of the annotation in maps.
Declaration
public MapsAnnotationBuilder ZIndex(string zIndex)
Parameters
Type | Name | Description |
---|---|---|
System.String | zIndex |