Spire.Doc中TextBox如何设置为透明色 - 小众知识

Spire.Doc中TextBox如何设置为透明色

2022-12-26 13:01:32 苏内容
  标签: word
阅读:2727

Spire我们一般通过如下方法添加TextBox

TextBox TB = document.Sections[0].Paragraphs[0].AppendTextBox(100,100);


TextBox的Format并没有设置Fill=FALSE或者Visable=FALSE的选项


经过反复尝试,发现只要设置

TB.Format.FillColor = Color.Empty;


即可,经过这个设置,边框和字体通通自动无颜色,需要手动设置颜色。



TextBoxFormat Methods

The TextBoxFormat type exposes the following members.


Methods

  Name Description

Protected method AcceptFormatRevisionCore(Int32,Int32[]) (Inherited from WordAttrCollection.)

Protected method AcceptFormatRevisionCore(FormatBase,Int32[], WordAttrCollection) (Inherited from WordAttrCollection.)

Protected method CheckUpdateFlagsColl (Inherited from FormatBase.)

Public method ClearBackground (Inherited from FormatBase.)

Public method ClearFormatting

Clears the formatting.

(Inherited from FormatBase.)

Protected method ClearPropUpdateFlag (Inherited from FormatBase.)

Public method Clone

Clone textbox format.

Protected method CloneImpl (Inherited from FormatBase.)

Protected method CreateEmptyCopy (Inherited from FormatBase.)

Protected method EnsureComposites() (Inherited from FormatBase.)

Protected method EnsureComposites(Int32[]) (Inherited from FormatBase.)

Public method Equals (Inherited from Object.)

Protected method Finalize (Inherited from Object.)

Protected method GetBaseKey (Inherited from FormatBase.)

Protected method GetDefComposite(Int32) (Inherited from FormatBase.)

Protected method GetDefComposite(Int32, FormatBase) (Inherited from FormatBase.)

Protected method GetDefValue (Overrides FormatBase.GetDefValue(Int32).)

Public method GetHashCode (Inherited from Object.)

Protected method GetSprmOption (Inherited from FormatBase.)

Public method GetType (Inherited from Object.)

Public method HasKey

Checks if Key exists.

(Inherited from FormatBase.)

Protected method ImportContainer (Inherited from FormatBase.)

Protected method ImportMembers (Inherited from FormatBase.)

Protected method InitCompositePrimaryKey (Inherited from FormatBase.)

Protected method InitXDLSHolder (Inherited from DocumentSerializable.)

Protected method IsPropertyUpdated (Inherited from FormatBase.)

Protected method MemberwiseClone (Inherited from Object.)

Protected method OnChange (Inherited from FormatBase.)

Protected method ReadXmlAttributes (Overrides DocumentSerializable.ReadXmlAttributes(IXDLSAttributeReader).)

Protected method ReadXmlContent (Inherited from DocumentSerializable.)

Protected method RestoreReference (Inherited from DocumentSerializable.)

Protected method SetAttr (Inherited from AttrCollection.)

Protected method SetPropUpdateFlag (Inherited from FormatBase.)

Public method ToString (Inherited from Object.)

Protected method WriteXmlAttributes (Overrides DocumentSerializable.WriteXmlAttributes(IXDLSAttributeWriter).)

Protected method WriteXmlContent (Inherited from DocumentSerializable.)


扩展阅读
相关阅读
© CopyRight 2010-2021, PREDREAM.ORG, Inc.All Rights Reserved. 京ICP备13045924号-1