How can i recognize mixed format of text?

Mission:
if some text has "regular" fontstyle, i apply to it Bold style. And if it have mixed fontstyle (both bold and regular) i would like apply the Bold Italic style. But i discovered, that property FontStyle of text with mixed style is "Regular"! Then how can i recognize mixed format of text?
Thanks.

When you have a text reference, check to see how many textStyleRanges it has. If more than one, you have mixed formatting. Check the style of each textStyleRange.
Dave

Similar Messages

  • How can I change the format of text pasted into a Mail email from another document?

    I paste some text from a word document into an email in Mail.  In the word document, the text was indented .5" from the right margin.  In the Mail email document, the text also appears indented .5" from the right margin.
    But since this was the last text in the email I am composing, my text following the pasted-in part continues at the indented "style" of the pasted in text.  And thre are no controls for changing this indentation on subsequent text in that email, nor can you chage the indentation formatting of the text pasted in.
    Even when you select "decrease indentation" under the format/indentation options in the menu bar, Mail will not reduce a "pasted-in" paragraph indentation nor will it return a subsequent text paragraph you type in manually back to a left-adjusted margin.
    Am I miising something?
    Is there a way to see something in each Mail message composition window akin to what you see in a word processing document that allows you to set margins and indentations and tabs for individual paragraphs?  Just like the Formatting controls you have here in the Apple Support communities when you ar composing a message and that I used to indent this paragraph?
    And then used to return this paragraph back to the original left adjusted formatting?
    Steve

    Thanks for the reminder.  I use the formatting toolbar but forgot to go there instead of the Format menubar item for Mail to try the indent and outdent commands.
    But, alas, that indent, outdent option has no impact on text pasted into the message.  It remains stuck at the indent level of the source text.
    Might the answer lie in switching to plain text and formatting there?  Tried that and no difference.
    I did discover that if you highlight text pasted in with its "own" indentation preference "baked in" you can indent that text further and even "outdent" it back to where it was, but you cannot shake it's original indentation status to get it back to full left margins.
    Steve

  • How can I lose the formatting for text I paste in?

    I cannot lose the formatting used by writers who email me articles for a Master Gardener newsletter. Specifically, I need to lose the extra space between the last line of one paragraph and the first line of another. I've tried exporting to Plain Text, which works for some--not all. Before I converted to the new OS, I could export to a PFD to lose the formatting, but that doesn't work now.

    Do you have an extra return between paragraphs, or simply the style has before/after spacing to paragraphs?
    If you have an extra return in Pages '09 you can search and replace double returns to single returns.
    Since Apple removed this ability from Pages 5, you will need to clean up your text elsewhere, in TextEdit, TextSoap or LibreOffice [free].
    Peter

  • How can i save a data in text format

    how can i save a data in text format in labwindows cvi
    Message Edited by Tikoy on 04-14-2010 11:30 PM
    Solved!
    Go to Solution.

    Hi,
    If your data is in an array, the easiest way is to use the ArrayToFile function.
    It automatically creates a file and puts your data in it according to the format you provide.
    If you have individual samples that you need to write once in a while, you can either collect them into an array and then use ArrayToFile or open a file with fopen and write them as they are acquired with fwrite.
    Hope this helps, 
    S. Eren BALCI
    www.aselsan.com.tr

  • How can I copy cell formatting from one range to another?

    How can I copy cell formatting from one range to another, including text fonts, colours, borders, etc., so that, for example, I can reuse a formatted reconciliation table again in different parts of a sheet?

    Hi George,
    Wayne found the Spinning Beachball of Death, and you will find it too.
    Numbers is not good at handling large datasets. Might I suggest that you group your data into smaller sets (each month, perhaps?) and save each group in a separate Numbers document. Numbers will not link between documents, but you could have a summary Table within each document. Then comes the "clunky" bit of copying all those summary tables into a master document where you do the final processing of the data.
    Regards,
    Ian.

  • How can i see my formatted document??

    Hi,
    I have this table
    CREATE TABLE ARCHAEOLDB(
    ID_DOC NUMBER(5) PRIMARY KEY,
    NOME_DOC VARCHAR2(200),
    FMT_DOC VARCHAR2(10)
    this is an example of my formatted document in my table.It has stored in my file system
    INSERT INTO archaeoldb VALUES(1,'RapportiSiciliaMagnaGreciaEtruriaTestimonianzaAraTarquinia.doc','binary');
    My datastore is file_datastore, and my filter is inso_filter.
    How can i see my formatted documents from php?
    I tried to create a table that contained the text of every document,using ctx_doc.Filter, in this way
    create table doc_filter
    query_id number constraint doc_filter_key primary key,
    document clob,
    format_doc VARCHAR2(10) default ‘binary’
    begin
    Ctx_Doc.Set_Key_Type ( Ctx_Doc.Type_Primary_Key );
    Ctx_Doc.Filter
    index_name => 'archindex' ,
    textkey => '2',
    restab => 'doc_filter',
    query_id => 2,
    plaintext => true /* try the effect of FALSE */     
    end;
    but if i runned from php
    select format from doc_filter where query_id=2 ;
    the result was a not formatted document..
    how can i solve my problem??
    if there are other solution, it's ok!!
    I tried in many ways, but i can't solve this problem!!
    thankyou

    SORRY!

  • TS1702 I have ePub documents that won't open using iBooks, how can i get them formatted so that I can use them

    I have ePub documents that won't open using iBooks, how can i get them formatted so that I can use them

    You could try downloading a program called Calibre.  It is very good at converting files between formats.  I use it all the time to convert PDF's from work to read on iTunes when I don't want to have to keep zooming in and out to read the actual text. 
    I know that iBooks will read PDF's but they can get pretty squashed down some times. Especially if the original font was small to begin with.  So I run them through Calibre and then email them to my phone and open them in iBooks. 

  • How can I change the formate of @today from (MM/dd/yyy) to (dd-MM-yyyy)?

    I am in openscript, using a settext commend - .setText("{{@today(MM/dd/yyyy), 10-02-2011}}}}"); is anyone know how can I change the formate of @today from (MM/dd/yyy) to (dd-MM-yyyy)?
    I went to Java Code tab and tried to use - new SimpleDataFormat("dd-MM-yyyy").format(new Date()); but not successful. Any help will be appreciated.
    Katherine

    Hi,
    you can display the date format in dd-mm-yy by using the below Java code.
    First import the bellow java classes.
    import java.util.Date;
    import java.text.SimpleDateFormat;
    //and add bellow code in run() function
         //************ Display Date and Time *************
         Date date_format=new Date();
         SimpleDateFormat dateFormat = new SimpleDateFormat("dd-mm-yyyy");// HH:mm:ss");
         String Exec_Time = dateFormat.format(date_format);
    //output statement
    info("Today's Date: "+Exec_Time);
    I can able to add the screenshot of this output here, so if you need any other information please write to me.
    Regards,
    MRSN

  • How can i  change the column label text in a alv table display

    how can i change the column label text in a alv table display??
    A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
    <i>*  declare column, settings, header object
    DATA: lr_column TYPE REF TO cl_salv_wd_column.
    DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
    get column by specifying column name.
    lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
    set Header Text as null
    lr_column_header = lr_column->get_header( ).
    lr_column_header->set_text( ' ' ).</i>
    My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
    <i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
    i have checked in debugging and the error occured at the statement :
    <i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
    Thanks,
    Suri

    I found it myself how to do it. The error says that it is not able to find the reference object i.e  it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
      DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
             lr_if_controller  TYPE REF TO iwci_salv_wd_table,
             lr_cmdl   TYPE REF TO cl_salv_wd_config_table,
             lr_col    TYPE REF TO cl_salv_wd_column.
      DATA : node_year  TYPE REF TO if_wd_context_node,
             elem_year  TYPE REF TO if_wd_context_element,
             stru_year  TYPE if_alv_layout=>element_importing,
             item_year  LIKE stru_year-i_current_year,
             lf_string    TYPE char(x),
      DATA: lr_column TYPE REF TO cl_salv_wd_column.
      DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
      DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
    Get the entered value from the input field of the screen
    node_year  = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
    elem_year  = node_year->get_element( ).
      elem_year->get_attribute(
       EXPORTING
        name = 'IMPORT_NODE-PARAMETER'
       IMPORTING
        value = L_IMPORT_PARAM ).
      WRITE L_IMPORT_PARAM TO lf_string.
    Get the reference of the table
      lr_cmp_usage  =  wd_this->wd_cpuse_alv( ).
      IF lr_cmp_usage->has_active_component( ) IS INITIAL.
        lr_cmp_usage->create_component( ).
      ENDIF.
      lr_if_controller  = wd_this->wd_cpifc_alv( ).
      lr_column_settings = lr_if_controller->get_model( ).
    get column by specifying column name.
      IF lr_column_settings IS BOUND.
        lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
    set Header Text as null
        lr_column_header = lr_column->get_header( ).
        lr_column_header->set_text( lf_string ).
    endif.

  • How can I disable e-mail and text messages when I'm close to or over my data quota ?

    How can I disable e-mail and text messages when I'm close to or over my data quota ?
    Is this possible? I don't see any options?
    All I see is this:
      Receive confirmations of many account transactions via Email and/or free Text Alerts delivered right to your cell phone. You can receive these confirmations for  
       transactions done online, over the phone or from your handset. Account management Text Alerts do not count against any Messaging allowances.
          Your bill is ready for review.
         Payment Confirmations: Your payment has been  received    Your credit/adjustment     has been applied.1
         Account Activity Confirmations     Plan changes     Feature changes1

    What phone?
    You would need to disable data on the phone itself.  You wouldn't do it online on your account.
    Note also that text messages do not count toward your data allowance.

  • How can I print a selection of text?

    In Mail (in Mavericks).  I would like to print just a paragraph or two that I have selected (highlighted).  How can I print just that selected text and not any other text or headers in that email?  I know I can copy and paste the text into a Text Edit document, but I'm looking for a quicker way to print just that selected text without leaving Mail.

    Create an Automator action that gets the selected text and automatically creates the TextEdit document and prints:
    To make the Service, create a New Automator workflow and select Service as the type.
    Set it to receive selected text in any application.
    Drag in a New TextEdit Document action
    Drag in a Run Applescript Action.
    Set the applescript to this:
    on run {input, parameters}
              tell application "TextEdit"
      print document of front window
      close document of front window without saving
      quit
              end tell
              return input
    end run
    Save it as something like Print Selected Text. Then, you can select text, ctrl-click on it, then select Print Selected Text from the Services submenu of the contextual menu.
    Here is a picture of the workflow:
    You could also give it a shortcut in the Keyboard System prefs, Shortcuts tab:

  • How Can I Set a Default Placeholder Text Language?

    How can I set a default placeholder text language instead of having to set the language every time I use placeholder text?

    Steve Werner wrote:
    I think the default placeholder text language is the language of your version of InDesign.
    The placeholder text is based on the current language setting. So if the language under the cursor is Hebrew, you'll get Hebrew.

  • How can we know the format of report

    Developed a web application using java SDK.
    How can we know the format of report that is is it a crystal report , PDF or excel or hyperling.
    If it is crystal report then i use openDoc and the report is opened but if its a hyperlink or PDf i am not able to open the report .
    Please help.
    Thanks

    Check the si_kind or so_progid property of object. You can use oInfoObject.getKind() to retrieve that.
    a crystal report would return crystalreport a pdf would return pdf etc.

  • How can I copy a paragraph of text from a Kindle book on the iPad?

    I just purchased a book to read on the Kindle app on my iPad.
    I would like to copy a paragraph of text to email to someone or to possibly quote in a blog post.
    How can I copy a paragraph of text from a Kindle book on the iPad?

    I'm very late to the conversation but thought I'd chime in since I've just been dealing with this myself. One way to copy from Kindle books is to make sure that you have your settings to backup highlights etc. online, then highlight the text in the Kindle app, go to your Kindle webpage (https://kindle.amazon.com/your_highlights) and copy the text from there.
    Remember, to be able to do this you have to set the app to backup highlights etc. I think this is set individually for each book. On my iPad the default is to backup.

  • How can I change the format of some of the pages of a PDF-document?

    I use Adobe Acrobat and have a PDF-document with A4 pages and some pages of another format (half of an A4).
    How can I change the format of these pages to A4 (with a lower blanc part)?

    You can increase the page size with the Crop Tool of Acrobat Pro.

Maybe you are looking for

  • Microsoft Exchange shared calendars through iCal on iPad or Mac

    This is surely not an original question, but - My company uses Microsoft Exchange.  I have synced it to my iPad for calendar, contacts, and email, and it works very well. We also use shared calendars, and I utilize this feature often via Outlook on m

  • For God's sake Nokia...PLEASE release the N950!!

    This sexy piece of hardware is the right one to replace the Maemo 5 giant, our beloved N900. I know it,  I know you guys know it as well. I'm looking at it and say "holy **bleep**, this device is thinking!" N900/N950 enthusiasts, back me up here!

  • How to edit page on a css template?

    i have been trying to change the header on my webpage. I just dont understand how css work yet. If i change the header at the template root level will that affect the entire CSS or do i just have to got to the particular page in DW and just edit that

  • Using Macbook Pro Retina with 2011 iMac

    About to purchase a new Macbook Pro Retina and hope to use my existing 2011 iMac as an external display which I believe is possible with this model. If it is, which cable will I need? Thunderbolt? Thanks

  • Recovery partition not recognized

    Hi all I received today my new HP ENVY 17-J010EL. The recovery partition IS present [RECOVERY D:], but seem not recognized. HP Recovery Manager say: "Recovery Partition has been removed - The Recovery Media creation option is no longer available". I