From Vectorworks Developer
Jump to navigation Jump to search

.SDK|SDK ..SDK:Types|SDK Types ..VCOM:VCOM (Vectorworks Component Object Model)|VCOM Basics ..VCOM:Class Reference|VCOM Class Reference


namespace VectorWorks::Filing

Member of VCOM:VectorWorks:Filing:IStdFile

Set default line ending for this file instance.

The line ending types supported:

ELineEndType Line ending characters
eLineEndType_Mac 0x0D 0x0A (CR/LF)
eLineEndType_Win 0x0D (CR)
eLineEndType_Unix 0x0A (LF)
eLineEndType_Native Depends on the os
virtual VCOMError VCOM_CALLTYPE SetDefaultNewLine(
ELineEndType type) = 0;


type ELineEndType The new line ending.

Return Value

Uses standard VCOM Error Reporting.

Return value meaning:

kVCOMError_NotInitialized Bad VCOM instance used to call the fuction.
kVCOMError_Failed Routine failed.


enum ELineEndType
  eLineEndType_Mac,    // 0x0D 0x0A (CR/LF)
  eLineEndType_Win,    // 0x0D (CR)
  eLineEndType_Unix,   // 0x0A (LF)
  eLineEndType_Native, // Depends on the OS

See Also

VCOM:VectorWorks:Filing:IFolderIdentifier | VCOM:VectorWorks:Filing:IFileIdentifier | VCOM:VectorWorks:Filing:IStdFile

[[VCOM:VectorWorks:Filing:IFolderIdentifier]] | [[VCOM:VectorWorks:Filing:IFileIdentifier]] | [[VCOM:VectorWorks:Filing:IStdFile]]