LEADTOOLS Annotations (Leadtools.Annotations assembly)
LEAD Technologies, Inc

NameOffset Property (AnnObject)

Example 





Gets or sets the name offset relative to the upper left corner of the bounding rectangle of this AnnObject.
Syntax
public virtual AnnPoint NameOffset {get; set;}
'Declaration
 
Public Overridable Property NameOffset As AnnPoint
'Usage
 
Dim instance As AnnObject
Dim value As AnnPoint
 
instance.NameOffset = value
 
value = instance.NameOffset
public virtual AnnPoint NameOffset {get; set;}
 get_NameOffset();
set_NameOffset(value);
public:
virtual property AnnPoint NameOffset {
   AnnPoint get();
   void set (    AnnPoint value);
}

Property Value

The name offset relative to the upper left corner of the bounding rectangle of this AnnObject.
Remarks
The automation mode uses this property when you click and drag the name of an object around. Setting this property to an empty point, puts the name back at the upper left corner of the bounding rectangle of this AnnObject. For more information, refer to Annotation Object Names.
Example
 
Public Sub AnnObject_NameOffset(ByVal container As AnnContainer)
   Dim font As AnnFont = New AnnFont("Arial", New AnnLength(11, AnnUnit.Point), FontStyle.Regular)
   For Each obj As AnnObject In container.Objects
      obj.NameVisible = True
      obj.NameOffset = AnnPoint.Empty
      obj.NameForeColor = Color.White
      obj.NameBackColor = Color.Blue
      obj.NameFont = font
   Next obj
End Sub
public void AnnObject_NameOffset(AnnContainer container)
{
   AnnFont font = new AnnFont("Arial", new AnnLength(11, AnnUnit.Point), FontStyle.Regular);
   foreach(AnnObject obj in container.Objects)
   {
      obj.NameVisible = true;
      obj.NameOffset = AnnPoint.Empty;
      obj.NameForeColor = Color.White;
      obj.NameBackColor = Color.Blue;
      obj.NameFont = font;
   }
}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

AnnObject Class
AnnObject Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.