Description
Defines a collection of origins, one for each string in the batch.
Syntax
[Visual Basic .NET] |
---|
Public Sub SetOrigins( _
ByVal Origins As System.Array _
)
|
[C#] |
---|
public void SetOrigins(
System.Array Origins
);
|
[Managed C++] |
---|
public: void SetOrigins(
System::Array ^ Origins
);
|
[Unmanaged C++] |
---|
public: HRESULT SetOrigins(
SAFEARRAY * * Origins
);
|
[Java] |
---|
public void setOrigins(
AgSafeArray Origins
);
|
[Python - STK API ] |
---|
def SetOrigins(self, Origins:list) -> None:
|
Parameters
Remarks
See Also
Example
Shows the format of the Origins parameter when setting per string origins.
[C#] |
---|
Array origins = new object[]
{
AgEStkGraphicsOrigin.eStkGraphicsOriginCenter,
AgEStkGraphicsOrigin.eStkGraphicsOriginBottomLeft,
AgEStkGraphicsOrigin.eStkGraphicsOriginBottomRight,
AgEStkGraphicsOrigin.eStkGraphicsOriginTopLeft
};
IAgStkGraphicsTextBatchPrimitiveOptionalParameters parameters = sceneManager.Initializers.TextBatchPrimitiveOptionalParameters.Initialize();
parameters.SetOrigins(ref origins);
|
|
Shows the format of the Origins parameter when setting per string origins.
[Visual Basic .NET] |
---|
Dim origins As Array = New Object() {AgEStkGraphicsOrigin.eStkGraphicsOriginCenter, AgEStkGraphicsOrigin.eStkGraphicsOriginBottomLeft, AgEStkGraphicsOrigin.eStkGraphicsOriginBottomRight, AgEStkGraphicsOrigin.eStkGraphicsOriginTopLeft}
Dim parameters As IAgStkGraphicsTextBatchPrimitiveOptionalParameters = sceneManager.Initializers.TextBatchPrimitiveOptionalParameters.Initialize()
parameters.SetOrigins(origins)
|
|