Click or drag to resize
XDL

XvcBaseLoadFile Method

외부 파일로부터 XvcBase를 로딩한다.

Namespace:  Pixoneer.NXDL.NVC
Assembly:  NXDLvc (in NXDLvc.dll) Version: 2.0.3.31
Syntax
C#
public bool LoadFile(
	string strOpenFile,
	out string strError,
	XThread thd
)

Parameters

strOpenFile
Type: SystemString
[In] 파일 경로 문자열
strError
Type: SystemString
[Out] 에러 메시지 문자열.
thd
Type: Pixoneer.NXDLXThread
[In] 쓰레드가 필요하면 설정하고 그렇지 않으면 nullptr을 입력한다.

Return Value

Type: Boolean
로딩을 완료하면 true를 반환하고 그렇지 않으면 false를 반환한다.
Examples
예제 #1:
private void openXvcVectorToolStripMenuItem_Click(object sender, EventArgs e)
{
    OpenFileDialog openFileDialog = new OpenFileDialog();
    openFileDialog.Multiselect = false;
    openFileDialog.Filter = "XvcBase Files|*.xvml";
    openFileDialog.RestoreDirectory = true;

    if (openFileDialog.ShowDialog() != DialogResult.OK) return;

    String strError;
    XvcBase vcBase = new XvcBase();
    bool bres = vcBase.LoadFile(openFileDialog.FileName, out strError, null);

    if (bres)
        MessageBox.Show("Vector File Open Succeed", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information);
    else
    {
        MessageBox.Show("Vector File Open Failed", "Fail", MessageBoxButtons.OK, MessageBoxIcon.Error);
        return;
    }

    nxImageLayerVectorEditor1.SetEditBase(vcBase);
}
See Also