Skip to main content

IvgMetadata

Struct IvgMetadata 

Source
pub struct IvgMetadata { /* private fields */ }
Expand description

CorelDRAW 对象的后期绑定包装(元数据)。

所有属性与方法通过 IDispatch::Invoke 按名称调用,调用失败时一般返回 None 或 false。

Implementations§

Source§

impl IvgMetadata

Source

pub fn new(disp: IDispatch) -> Self

由 COM IDispatch 构造包装对象。

Source

pub fn title(&self) -> Option<String>

读取标题(Title)。

Source

pub fn set_title(&self, v: impl Into<String>) -> bool

设置标题(Title)。

Source

pub fn subject(&self) -> Option<String>

读取主题(Subject)。

Source

pub fn set_subject(&self, v: impl Into<String>) -> bool

设置主题(Subject)。

Source

pub fn author(&self) -> Option<String>

读取作者(Author)。

Source

pub fn set_author(&self, v: impl Into<String>) -> bool

设置作者(Author)。

Source

pub fn last_author(&self) -> Option<String>

读取最后一个作者(LastAuthor)。

Source

pub fn set_last_author(&self, v: impl Into<String>) -> bool

设置最后一个作者(LastAuthor)。

Source

pub fn keywords(&self) -> Option<String>

读取关键词(Keywords)。

Source

pub fn set_keywords(&self, v: impl Into<String>) -> bool

设置关键词(Keywords)。

Source

pub fn notes(&self) -> Option<String>

读取备注(Notes)。

Source

pub fn set_notes(&self, v: impl Into<String>) -> bool

设置备注(Notes)。

Source

pub fn copyright(&self) -> Option<String>

读取版权(Copyright)。

设置版权(Copyright)。

Source

pub fn revision(&self) -> Option<i64>

读取修订(Revision)。

Source

pub fn set_revision(&self, v: i32) -> bool

设置修订(Revision)。

Source

pub fn doc_id(&self) -> Option<String>

读取文档标识(DocID)。

Source

pub fn set_doc_id(&self, v: impl Into<String>) -> bool

设置文档标识(DocID)。

Source

pub fn doc_language(&self) -> Option<i64>

读取文档语言(DocLanguage)。

Source

pub fn set_doc_language(&self, v: i32) -> bool

设置文档语言(DocLanguage)。

Source

pub fn template_sided(&self) -> Option<String>

读取 COM 属性 TemplateSided。

Source

pub fn set_template_sided(&self, v: impl Into<String>) -> bool

设置 COM 属性 TemplateSided。

Source

pub fn template_folds(&self) -> Option<String>

读取 COM 属性 TemplateFolds。

Source

pub fn set_template_folds(&self, v: impl Into<String>) -> bool

设置 COM 属性 TemplateFolds。

Source

pub fn template_type(&self) -> Option<String>

读取模板类型(TemplateType)。

Source

pub fn set_template_type(&self, v: impl Into<String>) -> bool

设置模板类型(TemplateType)。

Source

pub fn template_industry(&self) -> Option<String>

读取 COM 属性 TemplateIndustry。

Source

pub fn set_template_industry(&self, v: impl Into<String>) -> bool

设置 COM 属性 TemplateIndustry。

Source

pub fn template_designer_notes(&self) -> Option<String>

读取模板设计器备注(TemplateDesignerNotes)。

Source

pub fn set_template_designer_notes(&self, v: impl Into<String>) -> bool

设置模板设计器备注(TemplateDesignerNotes)。

Source

pub fn localizable_keywords(&self) -> Option<IvgLocalizableString>

读取可本地化关键词(LocalizableKeywords)。

Source

pub fn localizable_notes(&self) -> Option<IvgLocalizableString>

读取可本地化备注(LocalizableNotes)。

Source

pub fn localizable_title(&self) -> Option<IvgLocalizableString>

读取可本地化标题(LocalizableTitle)。

Source

pub fn localizable_subject(&self) -> Option<IvgLocalizableString>

读取可本地化主题(LocalizableSubject)。

读取可本地化版权(LocalizableCopyright)。

Source

pub fn localizable_template_designer_notes( &self, ) -> Option<IvgLocalizableString>

读取可本地化模板设计器备注(LocalizableTemplateDesignerNotes)。

Source

pub fn category(&self) -> Option<IvgLocalizableString>

读取类别(Category)。

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.