This document is archived and information here might be outdated.  Recommended version.


ITemplate.AddPatternElement Method (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Display)  

ITemplate.AddPatternElement Method

Adds a pattern element.

[Visual Basic .NET]
Public Sub AddPatternElement ( _
    ByVal mark As Double, _
    ByVal Gap As Double _
)
[C#]
public void AddPatternElement (
    double mark,
    double Gap
);
[C++]
HRESULT AddPatternElement(
  double mark,
  double Gap
);
[C++]

Parameters mark [in]
mark is a parameter of type double Gap [in]
Gap is a parameter of type double

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

AddPatternElement adds a new pattern element to the ITemplate object. A pattern element is a mark and a gap value. Both the mark and gap values cannot be set to 0 for the same element being added.

See Also

ITemplate Interface

.NET Snippets

Create Cartographic Line Symbol

.NET Samples

Dynamic biking (Code Files: DynamicBikingCmd)