Beispiel #1
0
 protected override void Initialize()
 {
     base.Initialize();
     this.ContentType                  = 0;
     this.DrawMLeaderOrderType         = 0;
     this.DrawLeaderOrderType          = 0;
     this.MaxLeaderSegmentCount        = 0;
     this.FirstSegmentAngleConstraint  = 0.0;
     this.SecondSegmentAngleConstraint = 0.0;
     this.LeaderLineType               = 0;
     this.LeaderLineColor              = 0;
     this.LeaderLineWeight             = 0;
     this.EnableLanding                = true;
     this.LandingGap              = 0.0;
     this.EnableDogleg            = true;
     this.DoglegLength            = 0.0;
     this.MLeaderStyleDescription = null;
     this.ArrowheadSize           = 0.0;
     this.DefaultMTextContents    = null;
     this.TextLeftAttachmentType  = 0;
     this.TextAngleType           = 0;
     this.TextAlignmentType       = 0;
     this.TextRightAttachmentType = 0;
     this.TextColor                  = 0;
     this.TextHeight                 = 0.0;
     this.EnableFrameText            = true;
     this.AlwaysAlignTextLeft        = true;
     this.AlignGap                   = 0.0;
     this.BlockContentColor          = 0;
     this.BlockContentXScale         = 1.0;
     this.BlockContentYScale         = 1.0;
     this.BlockContentZScale         = 1.0;
     this.EnableBlockContentScale    = true;
     this.BlockContentRotation       = 0.0;
     this.EnableBlockContentRotation = true;
     this.BlockContentConnectionType = 0;
     this.Scale = 1.0;
     this.OverwritePropertyValue        = false;
     this.IsAnnotative                  = true;
     this.BreakGapSize                  = 0.0;
     this.TextAttachmentDirection       = DxfTextAttachmentDirection.Horizontal;
     this.BottomTextAttachmentDirection = DxfBottomTextAttachmentDirection.Center;
     this.TopTextAttachmentDirection    = DxfTopTextAttachmentDirection.Center;
 }
Beispiel #2
0
        internal override bool TrySetPair(DxfCodePair pair)
        {
            switch (pair.Code)
            {
            case 3:
                this.MLeaderStyleDescription = (pair.StringValue);
                break;

            case 40:
                this.FirstSegmentAngleConstraint = (pair.DoubleValue);
                break;

            case 41:
                this.SecondSegmentAngleConstraint = (pair.DoubleValue);
                break;

            case 42:
                this.LandingGap = (pair.DoubleValue);
                break;

            case 43:
                this.DoglegLength = (pair.DoubleValue);
                break;

            case 44:
                this.ArrowheadSize = (pair.DoubleValue);
                break;

            case 45:
                this.TextHeight = (pair.DoubleValue);
                break;

            case 46:
                this.AlignGap = (pair.DoubleValue);
                break;

            case 47:
                this.BlockContentXScale = (pair.DoubleValue);
                break;

            case 49:
                this.BlockContentYScale = (pair.DoubleValue);
                break;

            case 90:
                this.MaxLeaderSegmentCount = (pair.IntegerValue);
                break;

            case 91:
                this.LeaderLineColor = (pair.IntegerValue);
                break;

            case 92:
                this.LeaderLineWeight = (pair.IntegerValue);
                break;

            case 93:
                this.TextColor = (pair.IntegerValue);
                break;

            case 94:
                this.BlockContentColor = (pair.IntegerValue);
                break;

            case 140:
                this.BlockContentZScale = (pair.DoubleValue);
                break;

            case 141:
                this.BlockContentRotation = (pair.DoubleValue);
                break;

            case 142:
                this.Scale = (pair.DoubleValue);
                break;

            case 143:
                this.BreakGapSize = (pair.DoubleValue);
                break;

            case 170:
                this.ContentType = (pair.ShortValue);
                break;

            case 171:
                this.DrawMLeaderOrderType = (pair.ShortValue);
                break;

            case 172:
                this.DrawLeaderOrderType = (pair.ShortValue);
                break;

            case 173:
                this.LeaderLineType = (pair.ShortValue);
                break;

            case 174:
                this.TextLeftAttachmentType = (pair.ShortValue);
                break;

            case 175:
                this.TextAngleType = (pair.ShortValue);
                break;

            case 176:
                this.TextAlignmentType = (pair.ShortValue);
                break;

            case 177:
                this.BlockContentConnectionType = (pair.ShortValue);
                break;

            case 178:
                this.TextRightAttachmentType = (pair.ShortValue);
                break;

            case 271:
                this.TextAttachmentDirection = (DxfTextAttachmentDirection)(pair.ShortValue);
                break;

            case 272:
                this.BottomTextAttachmentDirection = (DxfBottomTextAttachmentDirection)(pair.ShortValue);
                break;

            case 273:
                this.TopTextAttachmentDirection = (DxfTopTextAttachmentDirection)(pair.ShortValue);
                break;

            case 290:
                this.EnableLanding = (pair.BoolValue);
                break;

            case 291:
                this.EnableDogleg = (pair.BoolValue);
                break;

            case 292:
                this.EnableFrameText = (pair.BoolValue);
                break;

            case 293:
                this.EnableBlockContentScale = (pair.BoolValue);
                break;

            case 294:
                this.EnableBlockContentRotation = (pair.BoolValue);
                break;

            case 295:
                this.OverwritePropertyValue = (pair.BoolValue);
                break;

            case 296:
                this.IsAnnotative = (pair.BoolValue);
                break;

            case 297:
                this.AlwaysAlignTextLeft = (pair.BoolValue);
                break;

            case 300:
                this.DefaultMTextContents = (pair.StringValue);
                break;

            case 340:
                this.LineLeaderTypePointer.Handle = DxfCommonConverters.UIntHandle(pair.StringValue);
                break;

            case 341:
                this.ArrowheadPointer.Handle = DxfCommonConverters.UIntHandle(pair.StringValue);
                break;

            case 342:
                this.MTextStylePointer.Handle = DxfCommonConverters.UIntHandle(pair.StringValue);
                break;

            case 343:
                this.BlockContentPointer.Handle = DxfCommonConverters.UIntHandle(pair.StringValue);
                break;

            default:
                return(base.TrySetPair(pair));
            }

            return(true);
        }