LoadLineStyle Method (ILineStyleManager)

LoadLineStyle Method (ILineStyleManager) | Send Feedback
See Also Example

Result[out]
  Result as defined in dsCreateObjectResult_e

Name
  Name of the simple LineStyle to load in the document

FileName
  Path and file name of the definition file (see Remarks)

LineStyle[out]
  Simple LineStyle

Loads and gets the specified simple LineStyle.

# Syntax

Visual Basic |
--- | ---
    Function LoadLineStyle( _
       ByVal Name As System.String, _
       ByVal FileName As System.String, _
       ByRef LineStyle As LineStyle _
    ) As dsCreateObjectResult_e

C# |
--- | ---
    dsCreateObjectResult_e LoadLineStyle(
       System.string Name,
       System.string FileName,
       out LineStyle LineStyle
    )

JavaScript |
--- | ---
    LoadLineStyle(
       Name : String,
       FileName : String
    ) : {
       LineStyle : dsLineStyle,
       Result : String
    }

COM native C++ |
--- | ---
    HRESULT LoadLineStyle(
       BSTR Name,
       BSTR FileName,
       ILineStyle** LineStyle,
       dsCreateObjectResult_e* Result
    )

C++ |
--- | ---
    DSRESULT LoadLineStyle(
       const dsString& Name,
       const dsString& FileName,
       dsLineStyle** LineStyle,
       dsCreateObjectResult_e* Result
    )

#### Parameters

Name
  Name of the simple LineStyle to load in the document
FileName
  Path and file name of the definition file (see Remarks)
LineStyle[out]
  Simple LineStyle
Result[out] or Return Value
  Result as defined in dsCreateObjectResult_e

# Example

Load and Activate LineStyles (C#)
Load and Activate LineStyles (VB.NET)
Load and Activate LineStyles (VBA)
Load and Activate LineStyles (JavaScript)

# Remarks

You must create simple LineStyles before you can load them.

Definition files for simple LineStyles are stored in ASCII text files with .lin filename extensions.

If the specified simple LineStyle already exists in the document, then it is not overwritten.

# See Also

####

ILineStyleManager Interface
ILineStyleManager Members
ILineStyleManager::GetActiveLineStyle Method ()
ILineStyleManager::GetLineStyle Method ()
ILineStyleManager::GetLineStyles Method ()
ILineStyleManager::RemoveLineStyle Method ()

# Availability

DraftSight V1R4.0