Beispiel #1
0
        public DWriteFontWeight GetFontWeight(uint currentPosition, out DWriteTextRange textRange)
        {
            DWriteFontWeight fontWeight;

            this.handle.GetFontWeight(currentPosition, out fontWeight, out textRange);
            return(fontWeight);
        }
Beispiel #2
0
        public DWriteFontStyle GetFontStyle(uint currentPosition, out DWriteTextRange textRange)
        {
            DWriteFontStyle fontStyle;

            this.handle.GetFontStyle(currentPosition, out fontStyle, out textRange);
            return(fontStyle);
        }
Beispiel #3
0
        public float GetFontSize(uint currentPosition, out DWriteTextRange textRange)
        {
            float fontSize;

            this.handle.GetFontSize(currentPosition, out fontSize, out textRange);
            return(fontSize);
        }
Beispiel #4
0
        public DWriteFontStretch GetFontStretch(uint currentPosition, out DWriteTextRange textRange)
        {
            DWriteFontStretch fontStretch;

            this.handle.GetFontStretch(currentPosition, out fontStretch, out textRange);
            return(fontStretch);
        }
Beispiel #5
0
        public bool GetUnderline(uint currentPosition, out DWriteTextRange textRange)
        {
            bool hasUnderline;

            this.handle.GetUnderline(currentPosition, out hasUnderline, out textRange);
            return(hasUnderline);
        }
Beispiel #6
0
        public bool GetStrikethrough(uint currentPosition, out DWriteTextRange textRange)
        {
            bool hasStrikethrough;

            this.handle.GetStrikethrough(currentPosition, out hasStrikethrough, out textRange);
            return(hasStrikethrough);
        }
Beispiel #7
0
        public DWriteTypography GetTypography(uint currentPosition, out DWriteTextRange textRange)
        {
            IDWriteTypography typography;

            this.handle.GetTypography(currentPosition, out typography, out textRange);
            return(new DWriteTypography(typography));
        }
Beispiel #8
0
        public DWriteFontCollection GetFontCollection(uint currentPosition, out DWriteTextRange textRange)
        {
            IDWriteFontCollection fontCollection;

            this.handle.GetFontCollection(currentPosition, out fontCollection, out textRange);
            return(new DWriteFontCollection(fontCollection));
        }
Beispiel #9
0
        public void SetTypography(DWriteTypography typography, DWriteTextRange textRange)
        {
            if (typography == null)
            {
                throw new ArgumentNullException("typography");
            }

            this.handle.SetTypography((IDWriteTypography)typography.Handle, textRange);
        }
Beispiel #10
0
        public void SetFontCollection(DWriteFontCollection fontCollection, DWriteTextRange textRange)
        {
            if (fontCollection == null)
            {
                throw new ArgumentNullException("fontCollection");
            }

            this.handle.SetFontCollection((IDWriteFontCollection)fontCollection.Handle, textRange);
        }
Beispiel #11
0
        public string GetLocaleName(uint currentPosition, out DWriteTextRange textRange)
        {
            uint length;

            this.handle.GetLocaleNameLength(currentPosition, out length, out textRange);
            length++;

            StringBuilder name = new StringBuilder((int)length);

            this.handle.GetLocaleName(currentPosition, name, length, out textRange);

            return(name.ToString());
        }
Beispiel #12
0
 public void SetLocaleName(string localeName, DWriteTextRange textRange)
 {
     this.handle.SetLocaleName(localeName, textRange);
 }
Beispiel #13
0
 public void SetFontStyle(DWriteFontStyle fontStyle, DWriteTextRange textRange)
 {
     this.handle.SetFontStyle(fontStyle, textRange);
 }
Beispiel #14
0
 public void SetFontWeight(DWriteFontWeight fontWeight, DWriteTextRange textRange)
 {
     this.handle.SetFontWeight(fontWeight, textRange);
 }
Beispiel #15
0
 public void SetFontStretch(DWriteFontStretch fontStretch, DWriteTextRange textRange)
 {
     this.handle.SetFontStretch(fontStretch, textRange);
 }
Beispiel #16
0
 public void SetFontSize(float fontSize, DWriteTextRange textRange)
 {
     this.handle.SetFontSize(fontSize, textRange);
 }
Beispiel #17
0
 public void SetUnderline(bool hasUnderline, DWriteTextRange textRange)
 {
     this.handle.SetUnderline(hasUnderline, textRange);
 }
Beispiel #18
0
 public void SetStrikethrough(bool hasStrikethrough, DWriteTextRange textRange)
 {
     this.handle.SetStrikethrough(hasStrikethrough, textRange);
 }
Beispiel #19
0
 public void SetFontFamilyName(string fontFamilyName, DWriteTextRange textRange)
 {
     this.handle.SetFontFamilyName(fontFamilyName, textRange);
 }